str/int: Controversial breaking change added to Python

September 12, 2022277170


New breaking changes were just introduced in Python. The default behavior of how int to string and string to int conversions work has been changed, with a limit being set on the number of allowed digits, with the default limit now being 4300. The old behavior can be configured using a new sys call, but why was this change introduced in the first place? In this video, we go over the change, the underlying algorithmic and security reasons it was added, and present different viewpoints of community members both in favor of and against the changes. ā€• mCoding with James Murphy (https://mcoding.io) Voice your opinion: https://discuss.python.org/t/int-str-conversions-broken-in-latest-python-bugfix-releases/18889 Source code: https://github.com/mCodingLLC/VideosSampleCode Conversion limit docs: https://docs.python.org/3/library/stdtypes.html#int-max-str-digits Conversion implementations: https://github.com/python/cpython/blob/main/Objects/longobject.c CPython GitHub issue: https://github.com/python/cpython/issues/95778 Work on faster algorithms: https://github.com/python/cpython/issues/90716 Mitre CVE page: https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-10735 RedHat initial CVE report: https://bugzilla.redhat.com/show_bug.cgi?id=1834423 RedHat CVE "public on": https://access.redhat.com/security/cve/CVE-2020-10735 SUPPORT ME ā­ --------------------------------------------------- Patreon: https://patreon.com/mCoding Paypal: https://www.paypal.com/donate/?hosted_button_id=VJY5SLZ8BJHEE Other donations: https://mcoding.io/donate Top patrons and donors: Jameson, Laura M, Vahnekie, Dragos C, Matt R, Casey G, Johan A, John Martin, Jason F, Mutual Information, Neel R BE ACTIVE IN MY COMMUNITY šŸ˜„ --------------------------------------------------- Discord: https://discord.gg/Ye9yJtZQuN Github: https://github.com/mCodingLLC/ Reddit: https://www.reddit.com/r/mCoding/ Facebook: https://www.facebook.com/james.mcoding