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/2003-June/036022.html below:

[Python-checkins] python/dist/src/Lib pprint.py, 1.24, 1.25

[Python-Dev] Re: [Python-checkins] python/dist/src/Lib pprint.py, 1.24, 1.25Alex Martelli aleaxit@yahoo.com
Sun, 8 Jun 2003 17:40:53 +0200
On Sunday 08 June 2003 11:37 am, Gerrit Holl wrote:
   ...
>     if issubclass(typ, dict) and type(typ.__repr__) is type(dict.__repr__):
>         # do stuff

Aren't the calls to type() here wrong?  It seems to me that what you want
to check is just whether typ.__repr__ is dict.__repr__, not if the types of 
the two bound methods are the same.


Alex




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