[issue37998] re.sub(r'\\', r'\\\\', s) reporting MemoryError

2019-09-01 Thread Guruprasad Venkataramaiah
Guruprasad Venkataramaiah added the comment: With more debug, observed the input string ('s') is getting assigned to a big string of '' resulting in Memory error -- stage: -> resolved status: open -> closed

[issue37998] re.sub(r'\\', r'\\\\', s) reporting MemoryError

2019-09-01 Thread Guruprasad Venkataramaiah
Guruprasad Venkataramaiah added the comment: With more debug, observed the input string ('s') is getting assigned to a big string of '' resulting in Memory error -- resolution: -> not a bug ___ Python tracker &

[issue37998] re.sub(r'\\', r'\\\\', s) reporting MemoryError

2019-09-01 Thread Guruprasad Venkataramaiah
New submission from Guruprasad Venkataramaiah : On Python 3.5: s = re.sub(r'\\', r'', s) File "/pyuniti/venvs/guruv/lib/python3.5/re.py", line 182, in sub return _compile(pattern, flags).sub(repl, string, count) MemoryError On Python 3.7 s = re.sub(