### Port, board and/or hardware esp32 ### MicroPython version MicroPython v1.28.0-preview.173.g97219553ed.dirty on 2026-02-11; ESP32 LightWave with ESP32LW (99.99% sure master has this issue) ### Reproduction b''.hex() ### Expected behaviour '' ### Observed behaviour b'' ### Additional Information _No response_ ### Code of Conduct Yes, I agree
Activity
Josverl commentedon Feb 11, 2026
actually this reproduces on v1.27.0
But that is indeed different from CPython
dpgeorge commentedon Feb 12, 2026
Thanks for the report. PR #18808 fixes this issue.
py/objstr: Fix b"".hex() so it returns an empty str object.
dpgeorge commentedon Mar 4, 2026
Fixed by 06bfefe
py/objstr: Fix b"".hex() so it returns an empty str object.
py/objstr: Fix b"".hex() so it returns an empty str object.