Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

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

Closed
jstenar opened this Issue · 2 comments

2 participants

@jstenar
Collaborator

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
Owner

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

@minrk
Owner

Fixed by PR #769

@minrk minrk closed this in 6cc41ec
@ellisonbg ellisonbg referenced this issue from a commit
Commit has since been removed from the repository and is no longer available.
@mattvonrocketstein mattvonrocketstein referenced this issue from a commit in mattvonrocketstein/ipython
@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
Something went wrong with that request. Please try again.