[Patches] [ python-Patches-750542 ] Let pprint.py use issubclass instead of is for type checking
SourceForge.net
noreply@sourceforge.net
Sat, 07 Jun 2003 06:11:36 -0700
Patches item #750542, was opened at 2003-06-07 13:11
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=750542&group_id=5470
Category: Library (Lib)
Group: Python 2.3
Status: Open
Resolution: None
Priority: 5
Submitted By: Gerrit Holl (gerrit)
Assigned to: Nobody/Anonymous (nobody)
Summary: Let pprint.py use issubclass instead of is for type checking
Initial Comment:
Hi,
subclasses of dict, list, tuple etc. should be
pretty-printed according to the same rules as dict,
list and tuple themselves. Because of that, this patch
changes pprint.py so that rather than checking types
using 'typ is list', pprint checks types using
'issubclass(typ, list)'.
Gerrit Holl
Patched against latest CVS ( 07/06/2003 13:11:24 UTC)
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=750542&group_id=5470