Armin Rigo added the comment:

Also, if we want to be paranoid, the _PyObject_GetAttrId() can return anything, 
not necessarily a string object.  This would make the following 
PyUnicode_FromFormat() fail.  So maybe you also want to overwrite failures in 
PyUnicode_FromFormat() with the final ImportError.  (It actually looks like a 
good--if convoluted--use case for exception chaining at the C level...)

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue24492>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to