Some Python 2.1 ideas

Erno Kuusela erno-news at
Sun Dec 24 08:26:36 CET 2000

>>>>> "Bob" == Bob Alexander <bobalex at> writes:


| ---- String method to remove trailing newline

i think it would be prettier and more useful to have methods
to remove a given prefix/suffix from the beginning or the end of a
string. maybe add optional arguments for lstrip/rstrip, or
introduce new methods rtrim/ltrim?

   -- erno

More information about the Python-list mailing list