[Python-Dev] r88178 - python/branches/py3k/Lib/test/crashers/underlying_dict.py

"Martin v. Löwis" martin at v.loewis.de
Wed Jan 26 00:23:45 CET 2011


> Some comments would be nice. Right now it looks pretty close to
> deliberately obfuscated code (especially with the call to
> gc.get_referrers()).

That call tries to get at the class dictionary, rather then just
the dict_proxy that you get from A.__dict__. There should be
two referrers to thingy: the class dict, and the module dict.
The class dict will have a __module__ key.

I agree the program should print 2, though.

Regards,
Martin


More information about the Python-Dev mailing list