Silent truncation was deprecated in Python 3.7 in bpo-28332 with commit 6a7d348 by Serhiy Storchaka. It should be ok to turn these into OverflowError's starting with Python 3.10.
New changeset f4936ad by Erlend Egeberg Aasland in branch 'master': bpo-42393: Raise OverflowError iso. DeprecationWarning on overflow in socket.ntohs and socket.htons (GH-23980) f4936ad
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: