skulpt execution in browser - type() and __class__ do not work

14 views
Skip to first unread message

Andreas Müller

unread,
Sep 19, 2016, 10:25:06 AM9/19/16
to Skulpt
Based on the simple example on skulpt.org i tried some code snippets inside my own html-based introduction to python.
However, i found out, that both the function type() returns nothing and the __class__ attribute throws an error.
i tried:
i=5
print type(i)
print i.__class__
Using the online example, type() works but __class__ too gives an error.
What could be wrong with type() in my example? Why is __class__ not an attribute of an objekt?
Reply all
Reply to author
Forward
0 new messages