[issue18287] PyType_Ready() should sanity-check the tp_name field

Niklas Koep report at bugs.python.org
Fri Jun 28 13:48:33 CEST 2013


Niklas Koep added the comment:

Oh, you're right, of course. I completely forgot that any other case which jumps to the error label assumes an appropriate exception has already been set. I attached a new patch which raises a TypeError. Is there a better way to identify the type which is affected by this exception? Since we're complaining about the missing tp_name field we obviously can't supply the name in the exception.

----------
Added file: http://bugs.python.org/file30724/patch.default

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue18287>
_______________________________________


More information about the Python-bugs-list mailing list