File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed
Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ This library depends on:
2727* `Adafruit CircuitPython <https://github.com/adafruit/circuitpython >`_
2828
2929Note that some CircuitPython core changes were needed to support udecimal.
30- These will be in upcoming release 6.0.0.alpha-4 .
30+ Please use CircuitPython 6.0.0-rc.1 or newer with udecimal .
3131
3232The library also runs on desktop Python3, and should give numerically identical
3333results across all platorms.
Original file line number Diff line number Diff line change 160160
161161if sys .implementation .name == "circuitpython" :
162162
163+ if not hasattr (int , "bit_length" ):
164+ raise ImportError (
165+ "jepler_udecimal requires int.bit_length. Use CircuitPython 6.0.0-rc.1 or newer."
166+ )
167+
163168 def _as_integer_ratio (f ):
164169 m , e = _math .frexp (f )
165170 m = round (m * (1 << 53 ))
You can’t perform that action at this time.
0 commit comments