Skip to content

Source introspection with ?? is broken #665

Closed
takluyver opened this Issue Aug 2, 2011 · 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
minrk commented Aug 3, 2011

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 Aug 16, 2011
@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 Sep 7, 2011
@takluyver takluyver Convert source to native string before doing ANSI formatting.
Closes gh-665
afdb570
@minrk
IPython member
minrk commented Sep 9, 2011

Fixed by PR #663

@minrk minrk closed this Sep 9, 2011
@mattvonrocketstein mattvonrocketstein pushed a commit to mattvonrocketstein/ipython that referenced this issue Nov 3, 2014
@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.