You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Python implementation of json.loads() accepts non-ascii digits #125682
changed the title [-]Python implementation of `json.loads()` accepts unicode digits[/-][+]Python implementation of `json.loads()` accepts non-ascii digits[/+]on Oct 18, 2024
Activity
ZeroIntensity commentedon Oct 18, 2024
Why is this a bug?
intandfloatsupport this as well:Arguably, the bug is that the C implementation does not support it.
taleinat commentedon Oct 18, 2024
This can indeed be considered a bug, since it does not conform to the JSON specification in the standards.
See, for example, Section 6: Numbers in IETF RFC 8259, which clearly defines the supported digits.
ZeroIntensity commentedon Oct 18, 2024
Ah, I've applied the appropriate labels. Thank you for clarification :)
[-]Python implementation of `json.loads()` accepts unicode digits[/-][+]Python implementation of `json.loads()` accepts non-ascii digits[/+]gh-125682: Reject non-ASCII digits in the Python implementation of JS…
pythongh-125682: Reject non-ASCII digits in the Python implementation…
pythongh-125682: Reject non-ASCII digits in the Python implementation…
hauntsaninja commentedon Oct 21, 2024
Good spot!
[3.12] gh-125682: Reject non-ASCII digits in the Python implementatio…
[3.13] gh-125682: Reject non-ASCII digits in the Python implementatio…
pythongh-125682: Reject non-ASCII digits in the Python implementation…