Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

extreme truncating of return values #1788

Closed
ernop opened this issue May 30, 2012 · 4 comments · Fixed by #1793
Closed

extreme truncating of return values #1788

ernop opened this issue May 30, 2012 · 4 comments · Fixed by #1793
Milestone

Comments

@ernop
Copy link
Contributor

ernop commented May 30, 2012

while stepping through a function, when printing return values, ipython truncates them quite a bit - you get things like

<Context...ble.txt'>

Where in the code is this done? I haven't been able to find it. I want to give it more room - at least 80 chars wide would be fine.

@takluyver
Copy link
Member

Can you give an example session that demonstrates this? I don't think I've seen it.

@ernop
Copy link
Contributor Author

ernop commented May 30, 2012

def test():
    import ipdb;ipdb.set_trace()
    return '123456789012---------------------------------1234567890123'

test()

if you run this, then do 'n':

ipdb> n
--Return--
'123456789012...1234567890123'

It truncates to 28 characters. My original example was a django error where it truncated a bit more.

But both of these are too much, I think. I have lots of columns & want to use them.

@takluyver
Copy link
Member

Ah, debugging, right. No, I don't know what's doing that. I've had a look through IPython.core.debugger and I can't see anything about truncation.

@fperez
Copy link
Member

fperez commented May 30, 2012

See #1793.

@minrk minrk closed this as completed in 798c5cd May 31, 2012
mattvonrocketstein pushed a commit to mattvonrocketstein/ipython that referenced this issue Nov 3, 2014
Raise repr limit for strings to 80 characters (from 30).

The python pdb debugger doesn't call the builtin `repr` function but
instead a custom one from the `repr` *module* that limits strings to
30 characters.  Raise this limit to 80 for more informative printouts.

Closes ipython#1788.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants