Supported Python builtins¶
-
py.type(object)¶ Gets the class of a provided object, if possible.
Note
currently doesn’t work correctly when called on a class object, will return the class itself (also, classes don’t currently have a type).
-
py.type(name, bases, dict) Not exactly a builtin as this form is solely javascript-level (currently). Used to create new
py.jstypes. See Implementing a custom type for its usage.
-
py.None¶
-
py.True¶
-
py.False¶
-
py.NotImplemented¶
-
class
py.object¶ Base class for all types, even implicitly (if no bases are provided to
py.type())
-
class
py.bool([object])¶
-
class
py.float([object])¶
-
class
py.str([object])¶
-
class
py.unicode([object])¶
-
class
py.tuple¶
-
class
py.list¶
-
class
py.dict¶
-
py.len(object)¶
-
py.isinstance(object, type)¶
-
py.issubclass(type, other_type)¶
-
class
py.classmethod¶