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.

Author midnightdf
Recipients midnightdf
Date 2010-07-21.20:44:04
SpamBayes Score 1.640895e-08
Marked as misclassified No
Message-id <1279745047.45.0.24813200138.issue9326@psf.upfronthosting.co.za>
In-reply-to
Content
The error message below should state something along the lines of "f() takes at least 1 non-keyword argument (0 given)".  Regardless, this is a regression from 2.6 which would have emitted "f() takes at least 1 argument (0 given)" which while not perfect, is a more accurate description of the problem:


D:\rft\vsl\dlr\Languages\IronPython\Tests>27
Python 2.7 (r27:82525, Jul  4 2010, 09:01:59) [MSC v.1500 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> def f(a, b=2): pass
...
>>> f(b=2)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: f() takes at least 1 argument (1 given)
>>>
History
Date User Action Args
2010-07-21 20:44:07midnightdfsetrecipients: + midnightdf
2010-07-21 20:44:07midnightdfsetmessageid: <1279745047.45.0.24813200138.issue9326@psf.upfronthosting.co.za>
2010-07-21 20:44:05midnightdflinkissue9326 messages
2010-07-21 20:44:04midnightdfcreate