differentmatt / filbert

JavaScript parser of Python
Other
133 stars 27 forks source link

'in' does not work on dictionaries #31

Closed differentmatt closed 10 years ago

differentmatt commented 10 years ago

Incorrectly calls indexOf on the dictionary, as if it's a sequence.

a = {'p': 5}
'p' in a
var a = new __pythonRuntime.objects.dict([
        'p',
        5
    ]);
a.indexOf('p') >= 0;