forked from M-Labs/artiq
Since we don't implement any integer-like operations for TBool (addition, bitwise not, etc.), TBool is currently neither strictly equivalent to builtin bool nor numpy.bool_, but through very obvious compiler errors (operation not supported) rather than silently different runtime behaviour. Just mapping both to TBool thus is a huge improvement over the current behaviour (where numpy.False_ is a true-like object). In the future, we could still implement more operations for TBool, presumably following numpy.bool_ rather than the builtin type, just like builtin integers get translated to the numpy-like TInt{32,64}. GitHub: Fixes #1275. |
||
---|---|---|
.. | ||
__init__.py | ||
test_ad9910.py | ||
test_adf5356.py | ||
test_analyzer.py | ||
test_cache.py | ||
test_compile.py | ||
test_edge_counter.py | ||
test_embedding.py | ||
test_i2c.py | ||
test_moninj.py | ||
test_numpy.py | ||
test_performance.py | ||
test_phaser.py | ||
test_portability.py | ||
test_rtio.py | ||
test_spi.py | ||
test_stress.py | ||
test_urukul.py |