-
-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Open
Labels
Description
Port, board and/or hardware
micropython unix port
MicroPython version
MicroPython v1.26.0-preview.391.g76f716a824.dirty on 2025-07-21; linux [GCC 12.2.0] version
Reproduction
try:
dict()[:]
except Exception as e:
exc = e
print(exc.value)
Expected behaviour
An exception is expected, and its value is safe to interact with
Observed behaviour
The exception's .value
refers to the stacked temporary slice so the exact behavior is unpredictable. Often it shows as <>
though sometimes print(exc) or dir(exc.value) will crash.
Additional Information
Discovered by fuzzing.
Code of Conduct
Yes, I agree