Hi,
the subject line says all. I just checked, and it seems this is a python 2.3
feature - but in python2.2, I get
Python 2.2.3+ (#1, Aug 30 2005, 15:57:46)
[GCC 4.0.2 20050821 (prerelease) (Debian 4.0.1-6)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
Welcome to rlcompleter2 0.95
for nice experiences hit <tab> multiple times
>>> dict(foo="bar")
Traceback (most recent call last):
File "<stdin>", line 1, in ?
TypeError: 'foo' is an invalid keyword argument for this function
However, jython silently returns an empty dict:
droggisch@...$ jython2.2
Jython 2.2a1 on java1.5.0_02 (JIT: null)
Type "copyright", "credits" or "license" for more information.
>>> dict(foo="bar")
{}
>>>
Regards,
Diez
|