Author serhiy.storchaka
Recipients ppperry, serhiy.storchaka
Date 2015-12-29.14:39:49
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
Because tp_name is a pointer to null-terminated C string and there is no way to distinguish the name containg the null byte from the name terminated by null byte. tp_name is used for example in error messages.

>>> t = type('B\0C', (), {})
>>> t.__name__
>>> t() + 0
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: unsupported operand type(s) for +: 'B' and 'int'
Date User Action Args
2015-12-29 14:39:49serhiy.storchakasetrecipients: + serhiy.storchaka, ppperry
2015-12-29 14:39:49serhiy.storchakasetmessageid: <>
2015-12-29 14:39:49serhiy.storchakalinkissue25961 messages
2015-12-29 14:39:49serhiy.storchakacreate