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 mark.dickinson
Recipients belopolsky, cben, eric.araujo, ezio.melotti, flox, giampaolo.rodola, lesmana, loewis, mark.dickinson, ned.deily, pitrou, python-dev, r.david.murray, ronaldoussoren, serhiy.storchaka, steven.daprano, tshepang
Date 2013-05-06.12:20:34
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1367842834.92.0.818033595352.issue5845@psf.upfronthosting.co.za>
In-reply-to
Content
So I'm failing to find any documentation for libedit, but it looks as though this error occurs if rl_read_init_file fails to find an .editrc file in the appropriate place.  If I create an empty .editrc file in my home directory, the error disappears.  (Having an .inputrc file doesn't seem to make a difference either way.)

Perhaps the solution is to ignore an OSError from readline.read_init_file in register_readline---i.e., add a try / except OSError there.  The other option would be to ignore a nonzero errno from rl_read_init_file, but that doesn't sound so good: I'd expect someone deliberately calling readline.read_init_file to get an exception if the initialization file isn't found.
History
Date User Action Args
2013-05-06 12:20:34mark.dickinsonsetrecipients: + mark.dickinson, loewis, ronaldoussoren, cben, belopolsky, pitrou, giampaolo.rodola, ned.deily, ezio.melotti, eric.araujo, steven.daprano, r.david.murray, flox, lesmana, tshepang, python-dev, serhiy.storchaka
2013-05-06 12:20:34mark.dickinsonsetmessageid: <1367842834.92.0.818033595352.issue5845@psf.upfronthosting.co.za>
2013-05-06 12:20:34mark.dickinsonlinkissue5845 messages
2013-05-06 12:20:34mark.dickinsoncreate