[New-bugs-announce] [issue18852] Problem with pyreadline
Thomas Heller
report at bugs.python.org
Tue Aug 27 15:15:08 CEST 2013
New submission from Thomas Heller:
In site.py, line 477, I find this code:
# Reading the initialization (config) file may not be enough to set a
# completion key, so we set one first and then read the file
if 'libedit' in getattr(readline, '__doc__', ''):
readline.parse_and_bind('bind ^I rl_complete')
I am using pyreadline on Windows, where readline.__doc__ is None.
So the above code crashes with this exception:
Python 3.4.0a1 (v3.4.0a1:46535f65e7f3, Aug 3 2013, 22:57:30) [MSC v.1600 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
Failed calling sys.__interactivehook__
Traceback (most recent call last):
File "C:\Python34-64\lib\site.py", line 477, in register_readline
if 'libedit' in getattr(readline, '__doc__', ''):
TypeError: argument of type 'NoneType' is not iterable
----------
components: Library (Lib)
keywords: 3.3regression
messages: 196285
nosy: theller
priority: normal
severity: normal
status: open
title: Problem with pyreadline
versions: Python 3.4
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue18852>
_______________________________________
More information about the New-bugs-announce
mailing list