[issue35842] A potential bug about use of uninitialised variable

Josh Rosenberg report at bugs.python.org
Mon Jan 28 13:01:22 EST 2019


Josh Rosenberg <shadowranger+python at gmail.com> added the comment:

One additional note, just in case you're wondering. slice explicitly does not set Py_TPFLAGS_BASETYPE (in either Py2 or Py3), so you can't make a subclass of slice with NULLable fields by accident (you'll get a TypeError the moment you try to define it). There is one, and only one, slice type, and its fields are never NULL.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue35842>
_______________________________________


More information about the Python-bugs-list mailing list