[New-bugs-announce] [issue18585] Add a text truncation function

Antoine Pitrou report at bugs.python.org
Mon Jul 29 14:49:10 CEST 2013


New submission from Antoine Pitrou:

Following patch proposed to add a function named textwrap.summarize():

   >>> textwrap.summarize("Hello  world!", width=12)
   'Hello world!'
   >>> textwrap.summarize("Hello  world!", width=11)
   'Hello (...)'

----------
components: Library (Lib)
files: summarize.patch
keywords: patch
messages: 193862
nosy: barry, georg.brandl, pitrou
priority: normal
severity: normal
stage: patch review
status: open
title: Add a text truncation function
type: enhancement
versions: Python 3.4
Added file: http://bugs.python.org/file31072/summarize.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue18585>
_______________________________________


More information about the New-bugs-announce mailing list