forked from M-Labs/artiq
1f40f3ce15
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. |
||
---|---|---|
.. | ||
applets | ||
browser | ||
compiler | ||
coredevice | ||
dashboard | ||
examples | ||
firmware | ||
frontend | ||
gateware | ||
gui | ||
language | ||
master | ||
sim | ||
test | ||
wavesynth | ||
__init__.py | ||
_version.py | ||
appdirs.py | ||
build_soc.py | ||
experiment.py | ||
remoting.py | ||
tools.py |