[issue6890] IOError has no __unicode__ method - and loses information

2009-09-16 Thread Georg Brandl
Georg Brandl added the comment: And this is a duplicate of (the somewhat complicated-named) #6108. -- nosy: +georg.brandl resolution: -> duplicate status: open -> closed superseder: -> unicode(exception) behaves differently on Py2.6 when len(exception.args) > 1 _

[issue6890] IOError has no __unicode__ method - and loses information

2009-09-11 Thread Benjamin Peterson
Benjamin Peterson added the comment: If your curious, this is the bug report that broke it: http://bugs.python.org/issue2517 -- nosy: +benjamin.peterson ___ Python tracker ___ __

[issue6890] IOError has no __unicode__ method - and loses information

2009-09-11 Thread Michael Foord
New submission from Michael Foord : >>> try: ... open('flooble') ... except Exception as e: ... pass ... [39343 refs] >>> str(e) "[Errno 2] No such file or directory: 'flooble'" [39345 refs] >>> unicode(e) u"(2, 'No such file or directory')" The Unicode representation of an IOError has no inf