[New-bugs-announce] [issue36929] Other Python _io implementations may not expose _io in their type names

Maxwell Bernstein report at bugs.python.org
Wed May 15 14:35:30 EDT 2019


New submission from Maxwell Bernstein <tekk.nolagi at gmail.com>:

For a vanishingly small number of internal types, CPython sets the
tp_name slot to mod_name.type_name, either in the PyTypeObject or the
PyType_Spec. There are a few minor places where this surfaces:

* Custom repr functions for those types (some of which ignore the
  tp_name in favor of using a string literal, such as _io.TextIOWrapper)
* Pickling error messages

The existing test suite only tests the former.

This makes it tricky for other Python implementations to pass the test suite if
they do not expose the module name (_io, _ssl, _tkinter, etc) in their type
names.

----------
assignee: christian.heimes
components: IO, SSL, Tests, Tkinter
messages: 342593
nosy: christian.heimes, tekknolagi
priority: normal
severity: normal
status: open
title: Other Python _io implementations may not expose _io in their type names
type: behavior
versions: Python 3.6, Python 3.7, Python 3.8

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


More information about the New-bugs-announce mailing list