Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Source introspection with ?? is broken #665

Closed
takluyver opened this Issue · 3 comments

2 participants

Thomas Kluyver Min RK
Thomas Kluyver
Owner

To reproduce:

In [1]: def  abcdef(x, y, *args, **kwargs):
   ...:     pass
   ...: 

In [2]: abcdef??

The source stops at the first character. The same thing happens with %psource, although that's fixed in my py3compat branch, PR #663. I think it's somehow related to unicode, but I'm not sure how. Debugging it, page.page() on the result shows the problem, but printing the same string doesn't.

Linux, problem only affects terminal (not qtconsole), replicated with 0.11.rc3 and current master.

Thomas Kluyver takluyver referenced this issue from a commit
Commit has since been removed from the repository and is no longer available.
Min RK
Owner

reproduced on Linux, does not appear to happen on OSX.

Thomas Kluyver
Owner

I think this is now fixed in my py3compat branch.

Thomas Kluyver takluyver referenced this issue from a commit
Commit has since been removed from the repository and is no longer available.
Thomas Kluyver takluyver referenced this issue from a commit
Commit has since been removed from the repository and is no longer available.
Min RK
Owner

Fixed by PR #663

Min RK minrk closed this
Brian E. Granger ellisonbg referenced this issue from a commit
Commit has since been removed from the repository and is no longer available.
matthew von rocketstein mattvonrocketstein referenced this issue from a commit in mattvonrocketstein/ipython
Thomas Kluyver takluyver Convert source to native string before doing ANSI formatting.
Closes gh-665
f10851a
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.