[Python-ideas] Deprecating rarely used str methods

Ron Adam ron3200 at gmail.com
Fri Aug 9 04:17:25 CEST 2013


On 08/08/2013 02:19 PM, M.-A. Lemburg wrote:
> On 08.08.2013 21:16, M.-A. Lemburg wrote:
>> On 08.08.2013 20:32, Serhiy Storchaka wrote:
>>> str.expandtabs([tabsize]) is rarely used and can be moved to the textwrap module.
>>
>> TABs still exist in lots of files, so I'd rather not get rid
>> of this method.
>
> BTW: If more and more text formatting functions get moved to textwrap
> then the module should be renamed to textformat.

My vote is for texttools.

But bike colors aside, I've often thought the textwrap module name is too 
specialised.  A broader meaning name could allow other text processing 
functions and classes to be added/moved to it.  Making it possible to 
reduce the number of top level modules in future versions.

Cheers,
    Ron



More information about the Python-ideas mailing list