diff options
author | Damien George <damien.p.george@gmail.com> | 2016-09-16 12:30:09 +1000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2016-09-16 12:30:09 +1000 |
commit | f84b3416187c8144fd92e52d97a655a133d725b2 (patch) | |
tree | 907397fead6c4dba3eb12b5f4fbb6c7b08fbe467 /tests/extmod/machine_pulse.py | |
parent | 3fea1f014c949a1268baad175b767177552e4b00 (diff) | |
download | micropython-f84b3416187c8144fd92e52d97a655a133d725b2.tar.gz micropython-f84b3416187c8144fd92e52d97a655a133d725b2.zip |
py/objnone: Remove unnecessary handling of MP_UNARY_OP_BOOL.
bool(None) has a fast path in mp_obj_is_true so doesn't need to be
handled in none_unary_op. The only caveat is that subclassing may
bypass the mp_obj_is_true function, but actually you aren't allowed to
subclass classes that have singleton instances like NoneType (see
https://mail.python.org/pipermail/python-dev/2002-March/020822.html for
reference on this point).
Diffstat (limited to 'tests/extmod/machine_pulse.py')
0 files changed, 0 insertions, 0 deletions