Moving from perl to python: questions

Nathan Clegg nathan at islanddata.com
Wed Feb 16 22:29:01 CET 2000


On 16-Feb-2000 Gerrit Holl wrote:
> First, string.rstrip() might strip unwanted whitespace too; it does
> not only strip the newline.

Duly noted in my comments.

> Second: f.close is a function, so you'll need to append two
> parantheses:
> f.close()

My mistake.

> Third: a one-space indentation is considered Bad Style(tm)

But very handy in a poor editing environment such as my mail client
and was only used to illustrate an example, not create long-standing
source.


----------------------------------
Nathan Clegg
 nathan at islanddata.com






More information about the Python-list mailing list