Accessing Objects Based On Their ID
Fredrik Lundh
fredrik at pythonware.com
Tue Feb 15 06:48:54 EST 2005
> longer answer: write a small C extension that casts an integer (or long integer)
> argument to a PyObject, increments the refcount, and returns the object.
here's a pointer to a pointer to such a function, btw:
http://mail.python.org/pipermail/python-list/1999-October/013715.html
(see other messages in that thread for more on why this is a stupid idea)
</F>
More information about the Python-list
mailing list