This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author steven.daprano
Recipients barry, ezio.melotti, georg.brandl, pitrou, steven.daprano, vajrasky
Date 2013-08-02.17:12:04
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
A function like this often gets called to truncate lots of lines. Unfortunately for many use-cases, the part truncated is the most significant part of the line. E.g.:

Scanning file:

It's often better in cases like this to truncate in the middle:

Scanning file:

(I believe Mac OS-X routinely truncates long lines in the middle in this way.)

Perhaps there could be an argument controlling where to truncate (left, right or centre). A good use-case for the new Enums, perhaps? :-)
Date User Action Args
2013-08-02 17:12:04steven.dapranosetrecipients: + steven.daprano, barry, georg.brandl, pitrou, ezio.melotti, vajrasky
2013-08-02 17:12:04steven.dapranosetmessageid: <>
2013-08-02 17:12:04steven.dapranolinkissue18585 messages
2013-08-02 17:12:04steven.dapranocreate