mirror of
https://github.com/pocketpy/pocketpy
synced 2025-10-23 21:10:19 +00:00
609 B
609 B
| icon | title |
|---|---|
| dot | Undefined Behaviour |
These are the undefined behaviours of pkpy. The behaviour of pkpy is undefined if you do the following things.
- Delete a builtin object. For example,
del int.__add__. - Call an unbound method with the wrong type of
self. For example,int.__add__('1', 2). - Use goto statement to jump out of a context block.
- Type
T's__new__returns an object that is not an instance ofT. - Call
__new__with a type that is not a subclass oftype. __eq__,__lt__or__contains__, etc.. returns a value that is not a boolean.- Division by zero.