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 2017年12月05日 20:30 by levkivskyi, last changed 2022年04月11日 14:58 by admin. This issue is now closed.
| Pull Requests | |||
|---|---|---|---|
| URL | Status | Linked | Edit |
| PR 4731 | merged | levkivskyi, 2017年12月05日 20:31 | |
| Messages (5) | |||
|---|---|---|---|
| msg307935 - (view) | Author: Alyssa Coghlan (ncoghlan) * (Python committer) | Date: 2017年12月10日 00:39 | |
For documentation of this feature, I'd suggest adding a new subsection after https://docs.python.org/3/reference/datamodel.html#customizing-attribute-access (but at the same level), called "Customizing module attribute access". That can then cover defining __getattr__ and __dir__ as module level functions, and also mention setting __class__ (which would be enough to close issue 27505 as well). The new section should explicitly mention that these only affect lookups and modifications made using the attribute access syntax - directly accessing the module globals (whether by code within the module, or via a reference to the module's globals dict) is unaffected. |
|||
| msg308285 - (view) | Author: Ivan Levkivskyi (levkivskyi) * (Python committer) | Date: 2017年12月14日 10:59 | |
New changeset 5364b5cd7571f2dfa75acd37b388c14ac33fef73 by Ivan Levkivskyi in branch 'master': bpo-32225: Implementation of PEP 562 (#4731) https://github.com/python/cpython/commit/5364b5cd7571f2dfa75acd37b388c14ac33fef73 |
|||
| msg308290 - (view) | Author: Ivan Levkivskyi (levkivskyi) * (Python committer) | Date: 2017年12月14日 11:19 | |
Travis build on master successful, so I am closing this issue. |
|||
| msg310271 - (view) | Author: Inada Naoki (methane) * (Python committer) | Date: 2018年01月19日 10:29 | |
I didn't notice this is implemented. Congrats, Ivan! BTW, would you update the PEP status to Final? |
|||
| msg310313 - (view) | Author: Ivan Levkivskyi (levkivskyi) * (Python committer) | Date: 2018年01月20日 01:07 | |
> BTW, would you update the PEP status to Final? Good point, here is the PR https://github.com/python/peps/pull/554 |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022年04月11日 14:58:55 | admin | set | github: 76406 |
| 2018年12月21日 23:21:07 | cheryl.sabella | link | issue31503 superseder |
| 2018年01月20日 01:07:47 | levkivskyi | set | messages: + msg310313 |
| 2018年01月19日 10:29:08 | methane | set | nosy:
+ methane messages: + msg310271 |
| 2017年12月14日 11:19:15 | levkivskyi | set | status: open -> closed resolution: fixed messages: + msg308290 stage: patch review -> resolved |
| 2017年12月14日 10:59:47 | levkivskyi | set | messages: + msg308285 |
| 2017年12月10日 00:41:24 | ncoghlan | link | issue27505 dependencies |
| 2017年12月10日 00:39:16 | ncoghlan | set | messages: + msg307935 |
| 2017年12月10日 00:31:24 | ncoghlan | set | nosy:
+ ncoghlan |
| 2017年12月05日 20:31:15 | levkivskyi | set | keywords:
+ patch pull_requests: + pull_request4634 |
| 2017年12月05日 20:30:14 | levkivskyi | create | |