Issue 31497: Add _PyType_Name() - Python tracker
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) * ![]() |
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) * ![]() |
Date: 2017-09-17 17:30 | |
+1 This would clean-up the code a bit. |
|||
| msg302380 - (view) | Author: Serhiy Storchaka (serhiy.storchaka) * ![]() |
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 |
| 2022-04-11 14:58:52 | admin | set | github: 75678 |
| 2017-09-17 19:19:07 | serhiy.storchaka | set | status: open -> closed resolution: fixed stage: patch review -> resolved |
| 2017-09-17 18:11:06 | serhiy.storchaka | set | messages: + msg302380 |
| 2017-09-17 17:30:22 | rhettinger | set | nosy:
+ rhettinger messages: + msg302376 |
| 2017-09-17 17:08:26 | serhiy.storchaka | link | issue27541 dependencies |
| 2017-09-17 16:38:54 | serhiy.storchaka | set | keywords:
+ patch pull_requests: + pull_request3619 |
| 2017-09-17 16:33:09 | serhiy.storchaka | create | |
