Commit message (Collapse) | Author | Age | |
---|---|---|---|
* | py/objsingleton: Use mp_generic_unary_op for singleton objects. | Damien George | 2019-12-27 |
| | | | | | So these types more closely match NoneType, eg they can be hashed, like in CPython. | ||
* | tests/basics: Use str.format instead of % for formatting messages. | Damien George | 2019-10-29 |
| | | | | | Only use % formatting when testing % itself, because only str.format is guaranteed to be available on any port. | ||
* | py/objtype: Handle NotImplemented return from binary special methods. | Paul Sokolovsky | 2017-08-30 |
NotImplemented means "try other fallbacks (like calling __rop__ instead of __op__) and if nothing works, raise TypeError". As MicroPython doesn't implement any fallbacks, signal to raise TypeError right away. |