sgzwiz / brython

Automatically exported from code.google.com/p/brython
BSD 3-Clause "New" or "Revised" License
0 stars 1 forks source link

dict class __init__ fails to accept keyword parameters #78

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

assert dict(x=1, y=2) == {'x':1,'y':2}
print('OK')

What is the expected output? What do you see instead?
OK

Instead fails:
--
[07:54:51.181] TypeError: iterable.__len__ is not a function @ 
http://www.brython.info/py_classes.js:74

What version of the product are you using? On what operating system?
Brython version 1.1.20130217-084411
Linux Mint 14

Please provide any additional information below.
cleaner dict initialization, can use parameter unpacking

Original issue reported on code.google.com by ca...@nce.ufrj.br on 17 Feb 2013 at 11:01

GoogleCodeExporter commented 9 years ago
Thanks for the report, fixed by revision 628

Original comment by pierre.q...@gmail.com on 4 Mar 2013 at 3:03