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

Merged
merged 2 commits into from May 31, 2012

Projects

None yet

2 participants

@fperez
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
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
Member
fperez commented May 31, 2012

Good idea, done.

@minrk
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
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