parrotcode: Python Dictionary | |
Contents | Dynamic PMCs |
classes/pydict.pmc - Python Dictionary
These are the vtable functions for the Python Dictionary class
static size_t key_hash_object(Interp *interpreter, Hash *hash, void *value)
value
.static int object_compare(Interp *interp, void *a, void *b)
a
is the search key,
b
is the bucket key.void class_init()
void init()
void mark()
void delete_keyed(PMC *key)
*key
.INTVAL elements()
INTVAL exists_keyed(PMC *key)
*key
exists in the hash.PMC* "fromkeys" (PMC *self, PMC *keys, PMC *value)
keys
and value
.
If value
is not specified,
it defaults to None
.INTVAL get_bool()
PMC *get_class()
PMC *get_iter ()
PMC *get_pmc_keyed(PMC *key)
*key
.PMC *get_pmc_keyed_str(STRING *key)
STRING *get_string()
STRING *get_string_keyed(PMC *key)
*key
.PMC* "__new__"(PMC *cls, PMC *source)
void set_integer_keyed(PMC *key, STRING *value)
INTVAL is_equal(PMC *value)
==
operation.void set_pmc_keyed(PMC *key, PMC *value)
void set_string_keyed(PMC *key, STRING *value)
|