sgzwiz / brython

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

keyword 'top' get mangled wen initialized by dict() #96

Open GoogleCodeExporter opened 9 years ago

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

assert 'top' in {'top':True}, 'top was mangled: %s'%{'top':True}
assert 'top' in dict(top=True), 'top was mangled: %s'%dict(top=True)
print('Ok')

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

instead:

AssertionError: top was mangled: {"$$top":True}
module '__main__' line 2
assert 'top' in dict(top=True), 'top was mangled: %s'%dict(top=True)

keyword 'top' gets mangled with two preceeding '$'

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

Please provide any additional information below.
used in css positioning: dict(position='absolute', top= '100px')

Original issue reported on code.google.com by ca...@nce.ufrj.br on 9 Mar 2013 at 5:58