gauravssnl / skulpt

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

@classmethod is not implemented #99

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Code you're trying to run:

    class Model(object):
        @classmethod
        def get(cls):
            print cls

    Model.get()

What does "real" Python output?

    <class '__main__.Model'>

What does Skulpt output?

    Nothing - it crashes. Web log shows:
    uncaught exception: NameError: name 'classmethod' is not defined

Please provide any additional information.

Original issue reported on code.google.com by ton...@gmail.com on 1 Aug 2011 at 4:58