Chris Angelico wrote:
There has to be a way to get from some mythical "home" location (which we know in Python as locals()+globals()+current expression - the "current namespace") to your object. That might involve several names, or none at all, but if there's no such path, the object is unreferenced and must be disposed of.
Yes, that's what I mean by "bound to some anonymous thing". Somewhere in the implementation there must be one or more "root" references, but they don't necessarily have any names that you can refer to from Python. When I say "not bound to any name", I just mean that it's okay to leave some bindings out of your diagram if they're not pertinent to what you're trying to illustrate. For example, you can draw a box representing a string object and trust that something will keep it alive long enough for you to draw an arrow to it from the name you're assigning it to. -- Greg -- http://mail.python.org/mailman/listinfo/python-list