Toggle navigation

Supported Python builtins

py.type(object)

Gets the class of a provided object, if possible.

py.type(name, bases, dict)

Not exactly a builtin as this form is solely javascript-level (currently). Used to create new py.js types. 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