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

Merged
merged 2 commits into from May 31, 2012

Conversation

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.

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

This comment has been minimized.

Show comment
Hide comment
@minrk

minrk May 31, 2012

Member

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

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

This comment has been minimized.

Show comment
Hide comment
@fperez

fperez May 31, 2012

Member

Good idea, done.

Member

fperez commented May 31, 2012

Good idea, done.

@minrk

This comment has been minimized.

Show comment
Hide comment
@minrk

minrk May 31, 2012

Member

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:

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

This comment has been minimized.

Show comment
Hide comment
@minrk

minrk May 31, 2012

Member

Thanks, merging.

Member

minrk commented May 31, 2012

Thanks, merging.

minrk added a commit that referenced this pull request May 31, 2012

Merge pull request #1793 from fperez/truncated_repr
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

Merge pull request #1793 from fperez/truncated_repr
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment