Skip to content

Loading…

Source introspection with ?? is broken #665

Closed
takluyver opened this Issue · 3 comments

2 participants

@takluyver
IPython member

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.

@minrk
IPython member

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

@takluyver
IPython member

I think this is now fixed in my py3compat branch.

@takluyver takluyver added a commit to takluyver/ipython that referenced this issue
@takluyver takluyver Convert source to native string before doing ANSI formatting.
Closes gh-665
5de3f34
@takluyver takluyver added a commit to takluyver/ipython that referenced this issue
@takluyver takluyver Convert source to native string before doing ANSI formatting.
Closes gh-665
afdb570
@minrk
IPython member

Fixed by PR #663

@minrk minrk closed this
@mattvonrocketstein mattvonrocketstein pushed a commit to mattvonrocketstein/ipython that referenced this issue
@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.