This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Title: Add _PyType_Name()
Type: enhancement Stage: resolved
Components: Interpreter Core Versions: Python 3.7
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: rhettinger, serhiy.storchaka
Priority: normal Keywords: patch

Created on 2017-09-17 16:33 by serhiy.storchaka, last changed 2022-04-11 14:58 by admin. This issue is now closed.

Pull Requests
URL Status Linked Edit
PR 3630 merged serhiy.storchaka, 2017-09-17 16:38
Messages (3)
msg302373 - (view) Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) Date: 2017-09-17 16:33
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).
msg302376 - (view) Author: Raymond Hettinger (rhettinger) * (Python committer) Date: 2017-09-17 17:30
+1 This would clean-up the code a bit.
msg302380 - (view) Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) Date: 2017-09-17 18:11
New changeset 4ab46d794961491ed185c195d53da7ee6a16e646 by Serhiy Storchaka in branch 'master':
bpo-31497: Add private helper _PyType_Name(). (#3630)
Date User Action Args
2022-04-11 14:58:52adminsetgithub: 75678
2017-09-17 19:19:07serhiy.storchakasetstatus: open -> closed
resolution: fixed
stage: patch review -> resolved
2017-09-17 18:11:06serhiy.storchakasetmessages: + msg302380
2017-09-17 17:30:22rhettingersetnosy: + rhettinger
messages: + msg302376
2017-09-17 17:08:26serhiy.storchakalinkissue27541 dependencies
2017-09-17 16:38:54serhiy.storchakasetkeywords: + patch
pull_requests: + pull_request3619
2017-09-17 16:33:09serhiy.storchakacreate