¡@

Home 

python Programming Glossary: tp_hash

Why do -1 and -2 both hash to -2 in Python? [duplicate]

http://stackoverflow.com/questions/10130454/why-do-1-and-2-both-hash-to-2-in-python

If you write a type in a C extension module and provide a tp_hash method you have to avoid 1 if you return 1 Python will assume..

How to create a generator/iterator with the Python C API?

http://stackoverflow.com/questions/1815812/how-to-create-a-generator-iterator-with-the-python-c-api

0 tp_as_number 0 tp_as_sequence 0 tp_as_mapping 0 tp_hash 0 tp_call 0 tp_str 0 tp_getattro 0 tp_setattro 0 tp_as_buffer.. 0 tp_as_number 0 tp_as_sequence 0 tp_as_mapping 0 tp_hash 0 tp_call 0 tp_str 0 tp_getattro 0 tp_setattro 0 tp_as_buffer.. 0 tp_as_number 0 tp_as_sequence 0 tp_as_mapping 0 tp_hash 0 tp_call 0 tp_str 0 tp_getattro 0 tp_setattro 0 tp_as_buffer..

How do you extend python with C++?

http://stackoverflow.com/questions/2847617/how-do-you-extend-python-with-c

tp_repr 0 tp_as_number 0 tp_as_sequence 0 tp_as_mapping 0 tp_hash #define FlpObject_Check v v ob_type Flp_Type static FlpObject.. tp_repr 0 tp_as_number 0 tp_as_sequence 0 tp_as_mapping 0 tp_hash #define FlpObject_Check v v ob_type Flp_Type static FlpObject..

Accessing the underlying struct of a PyObject

http://stackoverflow.com/questions/3436730/accessing-the-underlying-struct-of-a-pyobject

0 tp_as_number 0 tp_as_sequence 0 tp_as_mapping 0 tp_hash 0 tp_call 0 tp_str 0 tp_getattro 0 tp_setattro 0 tp_as_buffer..