Issue1374088

classification
Title: keyword args to dict() constructor ignored
Type: Severity: normal
Components: None Versions:
Milestone:
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: fwierzbicki Nosy List: cgroves, fwierzbicki, kzuberi
Priority: high Keywords:

Created on 2005-12-06.05:41:24 by kzuberi, last changed 2006-09-12.15:42:56 by kzuberi.

Files
File name Uploaded Description Edit Remove
dict_kw.patch kzuberi, 2005-12-06.05:41:24 fix dict constructor's usage of keyword args
Messages
msg1076 (view) Author: Khalid Zuberi (kzuberi) Date: 2005-12-06.05:41:24
Diez B. Roggisch reported on jython-users that keyword 
arguments are silently ignored by dict():

  http://sourceforge.net/mailarchive/message.php?
msg_id=14050657

Jython CVS appears to have code to support the Python 
2.3 style use of keyword args to initialize the dict, 
but the feature doesn't quite work. Attached is a tiny 
patch to PyDictionary.java that seems to fix the 
problem.

- kz
msg1077 (view) Author: Khalid Zuberi (kzuberi) Date: 2006-08-27.06:24:38
Logged In: YES 
user_id=18288

Ran the regression & bugtests, and committed in 2.3 branch
rev 2915. Do we want this in trunk as well?

- kz
msg1078 (view) Author: Charlie Groves (cgroves) Date: 2006-08-28.02:51:03
Logged In: YES 
user_id=1174327

I don't see why it shouldn't go in trunk.  It's a nice usage
and I don't think it'll break any code that's targeted
specifically at 2.2 to have this start working.  
msg1079 (view) Author: Charlie Groves (cgroves) Date: 2006-09-12.03:26:15
Logged In: YES 
user_id=1174327

Added to trunk in r2930
msg1080 (view) Author: Khalid Zuberi (kzuberi) Date: 2006-09-12.15:42:56
Logged In: YES 
user_id=18288

Thanks!
- kz
History
Date User Action Args
2005-12-06 05:41:24kzubericreate