In article <mailman.2323.1265836683.28905.python-l...@python.org>, Steve Holden <st...@holdenweb.com> wrote: > >Whether in CPython, Jython or IronPython the value returned by calling >id(x) (whether x is a literal, a simple name or a more complex >expression) is absolutely no use as an accessor: it does not give you >access to the referenced value. > >If you disagree, please write (in any implementation you like: it need >not even be portable, though I can't imagine why ti wouldn't be) a >Python function which takes an id() value as its argument and returns >the value for which the id() value was provided.
IIRC, I've seen ctypes code that uses id() to get access to the object, but (obviously) I don't think that invalidates your point[er]. -- Aahz (a...@pythoncraft.com) <*> http://www.pythoncraft.com/ "At Resolver we've found it useful to short-circuit any doubt and just refer to comments in code as 'lies'. :-)" -- http://mail.python.org/mailman/listinfo/python-list