pythonian way
Milos Prudek
prudek at nembv.cz
Fri Feb 25 02:33:15 EST 2000
More information about the Python-list mailing list
Fri Feb 25 02:33:15 EST 2000
- Previous message (by thread): pythonian way
- Next message (by thread): pythonian way
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
The following excerpt works. It reads lines from config file. But I would like to ask if it is 'right' in the Pythonian way. Since I'm just beginning in Python I do not want to twist Python into 'my' way of thinking. There is no eof() function for high level readline(), so I use '' to discover end of file. A=[] Line=H.readline() while Line<>'': if Line<>'' and Line<>'\n': A.append(Line) Line=H.readline() -- Milos Prudek
- Previous message (by thread): pythonian way
- Next message (by thread): pythonian way
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list