"Jørgen P. Tjernø" wrote: > What I want a way is to make sure that one pointer = one specific python > object, so that trying to instantiate it again would return the same > object.
If you are lucky, the struct has a field reserved for the user that you can use to keep pointers to the corresponding Python object. If you are a bit less lucky, and you have control over how the structs are malloced, you can create your own struct instead, that adds such a back pointer at the end. Everything else is rather slow and messy, but please ask back if you think there's no way to achieve the above. Stefan _______________________________________________ Cython-dev mailing list [email protected] http://codespeak.net/mailman/listinfo/cython-dev
