[issue13457] Display module name as string in `ImportError`

2011-11-22 Thread Ram Rachum
Changes by Ram Rachum : -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

[issue13457] Display module name as string in `ImportError`

2011-11-22 Thread Brian Curtin
Brian Curtin added the comment: 3.3 will be adding an attribute which would have "datetime\r" here. See #1559549, which might make this a duplicate. You shouldn't (have to) rely on parsing the exception string. -- nosy: +brian.curtin ___ Python tra

[issue13457] Display module name as string in `ImportError`

2011-11-22 Thread Ram Rachum
Changes by Ram Rachum : -- type: -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

[issue13457] Display module name as string in `ImportError`

2011-11-22 Thread Ram Rachum
New submission from Ram Rachum : Recently I was confronted with a mysterious error: ImportError: No module named datetime Firther investigation revealed that the cause was a pickling problem that ran `__import__('datetime\r')`. If `ImportError` would have shown the module name as a string