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

Alex 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