[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 ___ Python tracker

[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 Serhiy Storchaka
Serhiy Storchaka added the comment: What is s? -- nosy: +serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list mailing list

[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(r'\\', r'', s) File "C: