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.
Created on 2011年12月13日 14:08 by meador.inge, last changed 2022年04月11日 14:57 by admin. This issue is now closed.
| Files | ||||
|---|---|---|---|---|
| File name | Uploaded | Description | Edit | |
| importlib-qualname.patch | meador.inge, 2011年12月13日 14:08 | Patch against tip (3.3.0a0) | review | |
| Messages (5) | |||
|---|---|---|---|
| msg149389 - (view) | Author: Meador Inge (meador.inge) * (Python committer) | Date: 2011年12月13日 14:08 | |
I was recently reading the 'importlib' code and noticed that the utility decorators have not been updated for '__qualname__': >>> def f(): pass ... >>> importlib.util.set_loader(f) <function set_loader.<locals>.wrapper at 0x7f4b323f1f60> >>> importlib.util.set_loader(f).__name__ 'f' >>> importlib.util.set_loader(f).__qualname__ 'set_loader.<locals>.wrapper' The attached patch fixes this. OK to commit? |
|||
| msg149394 - (view) | Author: Antoine Pitrou (pitrou) * (Python committer) | Date: 2011年12月13日 15:45 | |
Looks ok to me. |
|||
| msg149478 - (view) | Author: Brett Cannon (brett.cannon) * (Python committer) | Date: 2011年12月14日 21:20 | |
Seems fine to me, and if Antoine says it's doing the right thing then I'm cool with the patch. |
|||
| msg149501 - (view) | Author: Roundup Robot (python-dev) (Python triager) | Date: 2011年12月15日 04:55 | |
New changeset 54a77c556d9a by Meador Inge in branch 'default': Issue #13593: updating the importlib utility decorators for __qualname__. http://hg.python.org/cpython/rev/54a77c556d9a |
|||
| msg149502 - (view) | Author: Meador Inge (meador.inge) * (Python committer) | Date: 2011年12月15日 04:56 | |
Fix committed. Thanks for the review Antoine and Brett. |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022年04月11日 14:57:24 | admin | set | github: 57802 |
| 2011年12月15日 04:56:09 | meador.inge | set | status: open -> closed resolution: fixed messages: + msg149502 stage: commit review -> resolved |
| 2011年12月15日 04:55:08 | python-dev | set | nosy:
+ python-dev messages: + msg149501 |
| 2011年12月14日 21:20:02 | brett.cannon | set | assignee: meador.inge messages: + msg149478 |
| 2011年12月13日 15:45:47 | pitrou | set | messages: + msg149394 |
| 2011年12月13日 14:14:16 | ezio.melotti | set | nosy:
+ pitrou stage: patch review -> commit review |
| 2011年12月13日 14:08:16 | meador.inge | create | |