Closed
Description
Bug report
Bug description:
The below code results in a 'MemoryError' being raised in the format_field
function.
import string
obj = string.Formatter()
ret = obj.format_field("test", "5555555555550555")
Traceback
Traceback (most recent call last):
File "rep.py", line 4, in <module>
ret = obj.format_field("test", "5555555555550555")
File "/usr/lib/python3.10/string.py", line 235, in format_field
return format(value, format_spec)
MemoryError
CPython versions tested on:
3.10
Operating systems tested on:
Linux