joe-greenawalt / skulpt

Automatically exported from code.google.com/p/skulpt
Other
0 stars 0 forks source link

comparing an object and an integer #105

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Code you're trying to run:
class Foo:
    def __init__(self):
        self.x = 1

x = Foo()

if x != -1:
    print 'x is not -1'
else:
    print 'x is -1'
What does "real" Python output?
x is not -1

What does Skulpt output?
x is -1

Please provide any additional information.

Original issue reported on code.google.com by bonelake on 23 Apr 2012 at 1:37

GoogleCodeExporter commented 9 years ago
fixed

Original comment by bonelake on 1 Jun 2012 at 4:02