non-ascii in __doc__ string crashes qtconsole kernel when showing tooltip #767

Closed
jstenar opened this Issue Sep 6, 2011 · 2 comments

Projects

None yet

2 participants

@jstenar
IPython member

If there is a regular str object with non-ascii characers in a doc string. Then the kernel crashes when showing a tooltip for that object. Using master ee9e1d9.

Example run the script in https://gist.github.com/1198484

typing a( at a prompt will show the tooltip

typing b( at a prompt will crash the kernel

@minrk
IPython member

jsonutil.json_clean() inappropriately treats basestring as safe, when bytes objects are most certainly not safe. Should be a tiny fix.

@minrk
IPython member

Fixed by PR #769

@minrk minrk added a commit that closed this issue Sep 6, 2011
@minrk minrk Don't treat bytes objects as json-safe
closes gh-767
6cc41ec
@minrk minrk closed this in 6cc41ec Sep 6, 2011
@mattvonrocketstein mattvonrocketstein pushed a commit to mattvonrocketstein/ipython that referenced this issue Nov 3, 2014
@minrk minrk Don't treat bytes objects as json-safe
closes gh-767
48de1f2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment