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.

classification
Title: new.function ignores keyword arguments
Type: Stage:
Components: Interpreter Core Versions: Python 2.3
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: mwh, rhettinger
Priority: normal Keywords:

Created on 2003-02-25 15:24 by mwh, last changed 2022-04-10 16:07 by admin. This issue is now closed.

Messages (2)
msg14816 - (view) Author: Michael Hudson (mwh) (Python committer) Date: 2003-02-25 15:24
it's no biggie, but:

>>> import new
>>> new.function(a=1)
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
TypeError: function() takes at least 2 arguments (0 given)

is kind of sucky.
msg14817 - (view) Author: Raymond Hettinger (rhettinger) * (Python committer) Date: 2003-05-06 09:02
Logged In: YES 
user_id=80475

Fixed.
See Objects/funcobject.c 2.62
History
Date User Action Args
2022-04-10 16:07:06adminsetgithub: 38046
2003-02-25 15:24:41mwhcreate