Skip to content

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

Merged
merged 2 commits into from May 31, 2012

2 participants

@fperez
IPython member
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.

@fperez fperez 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.
ba59d05
@minrk
IPython 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
IPython member
fperez commented May 31, 2012

Good idea, done.

@minrk
IPython 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
IPython member
minrk commented May 31, 2012

Thanks, merging.

@minrk minrk merged commit 798c5cd into ipython:master May 31, 2012
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.