Message111116
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)
>>> |
|
Date |
User |
Action |
Args |
2010-07-21 20:44:07 | midnightdf | set | recipients:
+ midnightdf |
2010-07-21 20:44:07 | midnightdf | set | messageid: <1279745047.45.0.24813200138.issue9326@psf.upfronthosting.co.za> |
2010-07-21 20:44:05 | midnightdf | link | issue9326 messages |
2010-07-21 20:44:04 | midnightdf | create | |
|