[issue12914] Add cram function to textwrap
Raymond Hettinger
report at bugs.python.org
Sat Sep 10 03:16:09 CEST 2011
Raymond Hettinger <raymond.hettinger at gmail.com> added the comment:
A few thoughts:
* no one has ever made a request for this
* different people may want to do it in different ways
(the formulas are hard-wired).
* the '...' connector is hardwired
(perhaps ' ... ' would look less odd).
* we should have a preference for keeping APIs small
(more to learn and remember)
* this is dirt simple string processing and not hard
for people to roll their own if the need arises
* if the API were to be expanded, perhaps it should
be as a part of a focuses, thoughtful effort to
provide a more generic set of text formatting
transformations perhaps modeled on deep experiences
with similar modules in other languages.
(as opposed to piecemeal additions that weren't
designed with a coherent vision).
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue12914>
_______________________________________
More information about the Python-bugs-list
mailing list