[Python-bugs-list] [ python-Bugs-692959 ] new.function ignores keyword arguments

SourceForge.net noreply@sourceforge.net
Tue, 06 May 2003 02:02:23 -0700


Bugs item #692959, was opened at 2003-02-25 10:24
Message generated for change (Comment added) made by rhettinger
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=692959&group_id=5470

Category: Python Interpreter Core
Group: Python 2.3
>Status: Closed
>Resolution: Fixed
Priority: 5
Submitted By: Michael Hudson (mwh)
Assigned to: Nobody/Anonymous (nobody)
Summary: new.function ignores keyword arguments

Initial Comment:
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.

----------------------------------------------------------------------

>Comment By: Raymond Hettinger (rhettinger)
Date: 2003-05-06 04:02

Message:
Logged In: YES 
user_id=80475

Fixed.
See Objects/funcobject.c 2.62


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=692959&group_id=5470