[Python-Dev] pprint and list/tuple/dict subclasses (original) (raw)
Guido van Rossum guido at python.org
Tue Dec 2 13:50:58 EST 2003
- Previous message: [Python-Dev] pprint and list/tuple/dict subclasses
- Next message: [Python-Dev] pprint and list/tuple/dict subclasses
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Currently pprint refuses to prettyprint subclasses of list, tuple and dict. Does it make sense to change that for 2.4?
Of course once repr() is overwritten by a subclass, pprint has to use that instead of its own formatting.
Sounds like a good plan. Do you have a suggested patch?
--Guido van Rossum (home page: http://www.python.org/~guido/)
- Previous message: [Python-Dev] pprint and list/tuple/dict subclasses
- Next message: [Python-Dev] pprint and list/tuple/dict subclasses
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]