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

Raise repr limit for strings to 80 characters (from 30). #1793

Merged
merged 2 commits into from May 31, 2012

Conversation

fperez
Copy link
Member

@fperez fperez commented May 30, 2012

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 #1788.

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.
@minrk
Copy link
Member

minrk commented May 31, 2012

Python docs say repr is renamed reprlib, and is handled by 2to3, so this should be fine. Do you want to add a test?

@fperez
Copy link
Member Author

fperez commented May 31, 2012

Good idea, done.

@minrk
Copy link
Member

minrk commented May 31, 2012

Test results for commit 999481b merged into master
Platform: linux2

  • python2.7: OK (libraries not available: pymongo wx wx.aui)
  • python3.2: OK (libraries not available: matplotlib pymongo qt wx wx.aui)

Not available for testing:

@minrk
Copy link
Member

minrk commented May 31, 2012

Thanks, merging.

minrk added a commit that referenced this pull request May 31, 2012
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 #1788.
@minrk minrk merged commit 798c5cd into ipython:master May 31, 2012
mattvonrocketstein pushed a commit to mattvonrocketstein/ipython that referenced this pull request 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 this pull request may close these issues.

extreme truncating of return values
2 participants