Unicode and Python - how often do you index strings?

Johannes Bauer dfnsonfsduifb at gmx.de
Thu Jun 5 14:42:48 EDT 2014


On 05.06.2014 20:16, Paul Rubin wrote:
> Johannes Bauer <dfnsonfsduifb at gmx.de> writes:
>> line = line[:-1]
>> Which truncates the trailing "\n" of a textfile line.
> 
> use line.rstrip() for that.

rstrip has different functionality than what I'm doing.

Cheers,
Johannes

-- 
>> Wo hattest Du das Beben nochmal GENAU vorhergesagt?
> Zumindest nicht öffentlich!
Ah, der neueste und bis heute genialste Streich unsere großen
Kosmologen: Die Geheim-Vorhersage.
 - Karl Kaos über Rüdiger Thomas in dsa <hidbv3$om2$1 at speranza.aioe.org>



More information about the Python-list mailing list