A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2011-January/107678.html below:

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

[Python-Dev] r88178 - python/branches/py3k/Lib/test/crashers/underlying_dict.py [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

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4