diff options
author | Guido van Rossum <guido@python.org> | 2001-04-27 21:35:01 +0000 |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2001-04-27 21:35:01 +0000 |
commit | 3a80c4a29c9eca9699b5bfe80541bc413a83bcef (patch) | |
tree | 5c94eeeb2548888e32f0bb68f0a9b85b95b17fc2 /Objects/classobject.c | |
parent | e9bcb5c766635575ac33376fd4da6a38a86ddff1 (diff) | |
download | cpython-git-3a80c4a29c9eca9699b5bfe80541bc413a83bcef.tar.gz |
(Adding this to the trunk as well.)
Fix a very old flaw in PyObject_Print(). Amazing! When an object
type defines tp_str but not tp_repr, 'print x' to a real file
object would not call the tp_str slot but rather print a default style
representation: <foo object at 0x....>. This even though 'print x' to
a file-like-object would correctly call the tp_str slot.
Diffstat (limited to 'Objects/classobject.c')
0 files changed, 0 insertions, 0 deletions