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年05月04日 22:24 by brett.cannon, last changed 2022年04月11日 14:58 by admin.
| Pull Requests | |||
|---|---|---|---|
| URL | Status | Linked | Edit |
| PR 1735 | open | sayanchowdhury, 2017年05月22日 23:31 | |
| PR 26195 | open | zkneupper, 2021年05月17日 18:48 | |
| PR 27981 | open | python-dev, 2021年08月26日 19:45 | |
| Messages (6) | |||
|---|---|---|---|
| msg293022 - (view) | Author: Brett Cannon (brett.cannon) * (Python committer) | Date: 2017年05月04日 22:24 | |
https://docs.python.org/3/library/importlib.html#importlib.machinery.ExtensionFileLoader says "fullname, path" for __init__(), but https://github.com/python/cpython/blob/647c3d381e67490e82cdbbe6c96e46d5e1628ce2/Lib/importlib/_bootstrap_external.py#L909 says "name, path". While I would much rather change the parameter name to match the rest of the module, I don't think I'm comfortable with the backwards-compatibility breakage over just a single parameter name (although chances are no one will notice in either direction as everyone probably passes by position). |
|||
| msg293122 - (view) | Author: Brett Cannon (brett.cannon) * (Python committer) | Date: 2017年05月05日 16:34 | |
Another option is to rename 'name' to 'fullname', make 'name' keyword-only, and then raise a DeprecationWarning if 'name' is used, eventually removing the keyword-only argument. |
|||
| msg294193 - (view) | Author: Sayan Chowdhury (sayanchowdhury) * | Date: 2017年05月22日 21:53 | |
I am starting to work on this issue. |
|||
| msg339886 - (view) | Author: Brett Cannon (brett.cannon) * (Python committer) | Date: 2019年04月10日 19:37 | |
I realized another solution to this is to make the argument positional-only, then the name simply doesn't matter. Probably unnecessary breakage, though. |
|||
| msg393702 - (view) | Author: Irit Katriel (iritkatriel) * (Python committer) | Date: 2021年05月14日 23:14 | |
The PR was reviewed but it now has merge conflicts and possibly a test failure on MacOS. |
|||
| msg400363 - (view) | Author: Diana (DonnaDia) * | Date: 2021年08月26日 18:20 | |
I want to work on it. |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022年04月11日 14:58:46 | admin | set | github: 74460 |
| 2021年08月26日 19:45:24 | python-dev | set | nosy:
+ python-dev pull_requests: + pull_request26429 |
| 2021年08月26日 18:20:10 | DonnaDia | set | nosy:
+ DonnaDia messages: + msg400363 |
| 2021年05月17日 18:48:05 | zkneupper | set | keywords:
+ patch nosy: + zkneupper pull_requests: + pull_request24812 |
| 2021年05月14日 23:14:57 | iritkatriel | set | title: Make importlib.abc.ExtensionFileLoader.__init__() documentation match code -> Rename 'name' to 'fullname' argument to ExtensionFileLoader components: + Library (Lib), - Documentation keywords: + easy nosy: + iritkatriel versions: + Python 3.11, - Python 3.7, Python 3.8 messages: + msg393702 |
| 2019年04月10日 19:37:48 | brett.cannon | set | messages:
+ msg339886 versions: + Python 3.8 |
| 2017年07月23日 23:56:36 | berker.peksag | set | stage: needs patch -> patch review type: enhancement versions: + Python 3.7 |
| 2017年05月22日 23:31:00 | sayanchowdhury | set | pull_requests: + pull_request1826 |
| 2017年05月22日 21:53:26 | sayanchowdhury | set | nosy:
+ sayanchowdhury messages: + msg294193 |
| 2017年05月05日 16:34:30 | brett.cannon | set | messages: + msg293122 |
| 2017年05月04日 22:24:49 | brett.cannon | create | |