[issue21202] Naming a file` io.py` causes cryptic error message
Christian Theune
report at bugs.python.org
Thu Apr 17 01:15:06 CEST 2014
Christian Theune added the comment:
I managed to create a patch that relies (in hopefully reasonably safe manner) on embedding an object repr for identification in this and similar cases. This is basically what implements what Martin suggested.
Caveat emptor: my C knowledge is only good enough to be dangerous. Thomas Wouters and RDM helped me through it.
I haven't adapted the tests yet (lots of failures due to the output change) but I managed them to stop crashing.
The 'repr.py' in the root is my current testbed to see what's going on.
----------
nosy: +ctheune, r.david.murray, twouters
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue21202>
_______________________________________
More information about the Python-bugs-list
mailing list