classification
Title: Add _PyType_Name()
Type: enhancement Stage: resolved
Components: Interpreter Core Versions: Python 3.7
process
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 2017-09-17 19:19 by serhiy.storchaka. 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)
https://github.com/python/cpython/commit/4ab46d794961491ed185c195d53da7ee6a16e646
History
Date User Action Args
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