This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author serhiy.storchaka
Recipients serhiy.storchaka, twouters
Date 2015-09-21.16:30:46
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1442853047.02.0.107801341655.issue25203@psf.upfronthosting.co.za>
In-reply-to
Content
MemoryError raised in readline.set_completer_delims() turns the readline library to incorrect state.

$ (ulimit -v 200000; ./python;)
Python 3.6.0a0 (default:e33b4c18af59+, Sep 17 2015, 17:05:17) 
[GCC 4.8.4] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import readline
>>> readline.get_completer_delims()
' \t\n`~!@#$%^&*()-=+[{]}\\|;:\'",<>/?'
>>> readline.set_completer_delims(' '*10**8)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
MemoryError
>>> readline.get_completer_delims()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe4 in position 1: invalid continuation byte

Proposed patch fixes the issue.
History
Date User Action Args
2015-09-21 16:30:47serhiy.storchakasetrecipients: + serhiy.storchaka, twouters
2015-09-21 16:30:47serhiy.storchakasetmessageid: <1442853047.02.0.107801341655.issue25203@psf.upfronthosting.co.za>
2015-09-21 16:30:46serhiy.storchakalinkissue25203 messages
2015-09-21 16:30:46serhiy.storchakacreate