Source introspection with ?? is broken #665

Closed
takluyver opened this Issue Aug 2, 2011 · 3 comments

Comments

Projects
None yet
2 participants
@takluyver
Member

takluyver commented Aug 2, 2011

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

This comment has been minimized.

Show comment
Hide comment
@minrk

minrk Aug 3, 2011

Member

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

Member

minrk commented Aug 3, 2011

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

@takluyver

This comment has been minimized.

Show comment
Hide comment
@takluyver

takluyver Aug 3, 2011

Member

I think this is now fixed in my py3compat branch.

Member

takluyver commented Aug 3, 2011

I think this is now fixed in my py3compat branch.

takluyver added a commit to takluyver/ipython that referenced this issue Aug 16, 2011

takluyver added a commit to takluyver/ipython that referenced this issue Sep 7, 2011

@minrk

This comment has been minimized.

Show comment
Hide comment
@minrk

minrk Sep 9, 2011

Member

Fixed by PR #663

Member

minrk commented Sep 9, 2011

Fixed by PR #663

@minrk minrk closed this Sep 9, 2011

mattvonrocketstein pushed a commit to mattvonrocketstein/ipython that referenced this issue Nov 3, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment