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 theller
Recipients theller
Date 2013-08-27.13:15:07
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1377609308.01.0.92318264163.issue18852@psf.upfronthosting.co.za>
In-reply-to
Content
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
History
Date User Action Args
2013-08-27 13:15:08thellersetrecipients: + theller
2013-08-27 13:15:08thellersetmessageid: <1377609308.01.0.92318264163.issue18852@psf.upfronthosting.co.za>
2013-08-27 13:15:07thellerlinkissue18852 messages
2013-08-27 13:15:07thellercreate