Scrambler. set_scrambler_ring function is not Micropython compliant (AttributeError: 'str' object has no attribute 'zfill' when setting scrambler ring)
denismaggior8 opened this issue · 0 comments
denismaggior8 commented
# micropython (kind-kind-cluster/default)
MicroPython v1.26.1 on 2025-09-11; darwin [Clang 17.0.0] version
Use Ctrl-D to exit, Ctrl-E for paste mode
>>> from enigmapython.EnigmaM3RotorI import EnigmaM3RotorI
>>> rotor1 = EnigmaM3RotorI(ring=0,position=0)
>>> rotor1 = EnigmaM3RotorI(ring=0,position=1)
>>> rotor1 = EnigmaM3RotorI(ring=0,position=10)
>>> rotor1 = EnigmaM3RotorI(ring=1,position=10)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "enigmapython/EnigmaM3RotorI.py", line 17, in __init__
File "enigmapython/Rotor.py", line 29, in __init__
File "enigmapython/Scrambler.py", line 27, in __init__
File "enigmapython/Scrambler.py", line 54, in set_scrambler_ring
AttributeError: 'str' object has no attribute 'zfill'