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:
Damien George
2023-01-23 12:24:39 +11:00
parent d4a4cde42e
commit d387ae3444
2 changed files with 14 additions and 2 deletions

View File

@@ -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: