[issue5587] vars() no longer has a use __repr__
Raymond Hettinger
report at bugs.python.org
Sat Mar 28 18:08:42 CET 2009
New submission from Raymond Hettinger <rhettinger at users.sourceforge.net>:
The vars() builtin now returns a hard to view object. Formerly, it had
a useful __repr__.
Python 3.1a1
>>> class A: pass
>>> vars(A)
<dict_proxy object at 0x0131FE70>
IDLE 2.6.1
>>> class A: pass
>>> vars(A)
{'__module__': '__main__', '__doc__': None}
----------
components: Interpreter Core
messages: 84315
nosy: rhettinger
severity: normal
status: open
title: vars() no longer has a use __repr__
versions: Python 3.0, Python 3.1
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue5587>
_______________________________________
More information about the Python-bugs-list
mailing list