IPython - Enhanced Interactive Python

Crash if completer_delims has been set to a unicode string (at least on windows)

Reported by Jörgen Stenarson on 2009-01-09
2
Affects Status Importance Assigned to Milestone
IPython
Fix Released
Critical
Brian Granger
0.10
Fix Released
Critical
Jörgen Stenarson

Bug Description

I have set completer delims to u" \t\n\"\\'`@$><=;|&{(?" and then I get the attached crashlog on startup.

I believe it is because a unicode strings translate method does not have a delete keyword argument on python2.4.

/Jörgen

Ville M. Vainio (villemvainio) wrote :

IPython should just do str() to convert whatever readline.get_completer_delims gives it.

Ville M. Vainio skrev:
> IPython should just do str() to convert whatever
> readline.get_completer_delims gives it.
>
But that could fail if get_completer_delims returns a unicode string
with a character that can not be converted to ascii.

I will work on a quickfix here. It should be ok to just remove any characters from completer_delims that are not ascii.

Changed in ipython:
assignee: nobody → ellisonbg
importance: Undecided → Critical
status: New → Fix Committed
Changed in ipython:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Bug attachments