icon: dot title: Comparison with CPython
cpython is the reference implementation of the Python programming language. It is written in C and is the most widely used implementation of Python.
pkpy aims to be an alternative to lua for game scripting, not cpython for general purpose programming.
pkpy supports most of the syntax and semantics of python. For performance and simplicity, some features are not implemented, or behave differently.
**kwargs in function definition.__getattr__ and __setattr__.__get__ and __set__. However, @property is implemented.__slots__ in class definition.import module from a directory with __init__.py.(1,) is not supported.list and dict literals, i.e. [1, 2, *a].else clause in try..except.__iadd__ and __imul__.__del__ in class definition.StopIteration is returned instead of raised.++i and --j is an increment/decrement statement, not an expression.int and float are not subclasses of bool.int is not of unlimited precision. In 32 bit system, int and float is 30 bit; in 64 bit system, they are both 62 bit.__ne__ is not required. Define __eq__ is enough.