New submission from Serhiy Storchaka: Proposed PR adds a helper function _PyType_Name() which returns the last component of tp_name after dot. This allows to avoid duplication of the code.
I'm going to use this helper in more places in future for getting rid of hardcoded type names (issue27541, issue21861). ---------- components: Interpreter Core messages: 302373 nosy: serhiy.storchaka priority: normal severity: normal stage: patch review status: open title: Add _PyType_Name() type: enhancement versions: Python 3.7 _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue31497> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com