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

@takluyver
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.

@takluyver takluyver referenced this issue from a commit
Commit has since been removed from the repository and is no longer available.
@minrk
Owner

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

@takluyver
Owner

I think this is now fixed in my py3compat branch.

@takluyver takluyver referenced this issue from a commit
Commit has since been removed from the repository and is no longer available.
@takluyver takluyver referenced this issue from a commit
Commit has since been removed from the repository and is no longer available.
@minrk
Owner

Fixed by PR #663

@minrk minrk closed this
@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
@takluyver 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.