
report at bugs
Nov 16, 2009, 11:42 PM
Post #6 of 6
(271 views)
Permalink
|
|
[issue7310] Unhelpful __repr__() in os.environ
[In reply to]
|
|
Ezio Melotti <ezio.melotti [at] gmail> added the comment: New patch that includes a unittest. I was also considering to replace the repr() with something that looks like _Environ({dict-here}). That will still contain all the information and also clarify that os.environ is not just a simple dict. (Even if it's probably not relevant, if we want eval(repr(os.environ)) to work, the repr() should also include the other args accepted by the _Environ() constructor.) If you think this is a good idea I can make a new patch, otherwise, if the current patch is fine, I'll commit it as it is. ---------- Added file: http://bugs.python.org/file15348/issue7310.diff _______________________________________ Python tracker <report [at] bugs> <http://bugs.python.org/issue7310> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com
|