[New-bugs-announce] [issue31497] Add _PyType_Name()

Serhiy Storchaka report at bugs.python.org
Sun Sep 17 12:33:09 EDT 2017


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 <report at bugs.python.org>
<https://bugs.python.org/issue31497>
_______________________________________


More information about the New-bugs-announce mailing list