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 2012年04月17日 21:28 by flox, last changed 2022年04月11日 14:57 by admin. This issue is now closed.
| Messages (3) | |||
|---|---|---|---|
| msg158568 - (view) | Author: Florent Xicluna (flox) * (Python committer) | Date: 2012年04月17日 21:28 | |
This is probably a bug. >>> class A: ... def f(self, __a=42): ... pass ... >>> A().f() >>> class A: ... def f(self, *, __a=42): ... pass ... >>> A().f() Traceback (most recent call last): File "<stdin>", line 1, in <module> TypeError: f() needs keyword-only argument _A__a |
|||
| msg158578 - (view) | Author: Roundup Robot (python-dev) (Python triager) | Date: 2012年04月17日 23:54 | |
New changeset f8540b8d076c by Benjamin Peterson in branch '3.2': mangle keyword-only argname when loading defaults (closes #14607) http://hg.python.org/cpython/rev/f8540b8d076c |
|||
| msg158579 - (view) | Author: Roundup Robot (python-dev) (Python triager) | Date: 2012年04月17日 23:54 | |
New changeset 22844ddce57b by Benjamin Peterson in branch 'default': merge 3.2 (#14607) http://hg.python.org/cpython/rev/22844ddce57b |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022年04月11日 14:57:29 | admin | set | github: 58812 |
| 2012年04月17日 23:54:41 | python-dev | set | messages: + msg158579 |
| 2012年04月17日 23:54:30 | python-dev | set | status: open -> closed nosy: + python-dev messages: + msg158578 resolution: fixed stage: resolved |
| 2012年04月17日 23:36:42 | pitrou | set | nosy:
+ ncoghlan, benjamin.peterson |
| 2012年04月17日 21:28:15 | flox | create | |