Issue1442254

classification
Title: dict constructor silently ignores keyword args
Type: Severity: normal
Components: Core Versions:
Milestone:
process
Status: closed Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: kzuberi
Priority: normal Keywords:

Created on 2006-03-03.05:03:21 by kzuberi, last changed 2006-03-03.05:03:21 by kzuberi.

Files
File name Uploaded Description Edit Remove
dict_kwds_fix.patch kzuberi, 2006-03-03.05:03:21 accept keyword args in dic constructor
Messages
msg1107 (view) Author: Khalid Zuberi (kzuberi) Date: 2006-03-03.05:03:21
In Jython 2.2a1:

 >>> x = dict(hi=1, there=2)
 >>> x
 {}

but 

 >>> x = dict({1:1}, hi=2, there=3)
 >>> x
 {'hi': 2, 'there': 3, 1: 1}

seems the code to handle keyword args is in there but
buggy. Tiny fix attached.

- kz



msg1108 (view) Author: Khalid Zuberi (kzuberi) Date: 2006-03-03.05:06:40
Logged In: YES 
user_id=18288


Ehm, i forgot i had reported this one before. Must have been
in another life ;-). Please close, thanks!

- kz
History
Date User Action Args
2006-03-03 05:03:21kzubericreate