mirror of
https://github.com/micropython/micropython.git
synced 2026-01-08 13:10:21 +01:00
py/objint_mpz: Catch and reject @ and @= operating on big integers.
This will also catch / and /= when float support is disabled. Fixes issue #10544. Signed-off-by: Damien George <damien@micropython.org>
This commit is contained in:
@@ -7,6 +7,16 @@ try:
|
||||
except ValueError:
|
||||
print("ValueError")
|
||||
|
||||
try:
|
||||
i @ 0
|
||||
except TypeError:
|
||||
print("TypeError")
|
||||
|
||||
try:
|
||||
i @= 0
|
||||
except TypeError:
|
||||
print("TypeError")
|
||||
|
||||
try:
|
||||
len(i)
|
||||
except TypeError:
|
||||
|
||||
Reference in New Issue
Block a user