Learing Python, Newbie question
Johannes Gamperl
info at devshare.de
Thu Oct 25 16:53:36 EDT 2001
More information about the Python-list mailing list
Thu Oct 25 16:53:36 EDT 2001
- Previous message (by thread): Learing Python, Newbie question
- Next message (by thread): Learing Python, Newbie question
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
In article <Xv_B7.30279$Nx2.605261 at atlpnn01.usenetserver.com>, sholden at holdenweb.com says... > > > Erm, what's wrong with: > > db_first = not os.path.exists("gbook.txt") # best? > i found this one is a good deal for me :-) what about this: if db_first: db_flag = "w"; else: db_flag = "a"; is there a better way to write this? once again ... i don't want annoy you, i just start to learn python. Mainly i will use it for cgi programming. so the first thing i do is to write a simple guestbook. i was surprised how easy it was ... sorry for my bad english but i'm from germany :-) So long ... Hannes
- Previous message (by thread): Learing Python, Newbie question
- Next message (by thread): Learing Python, Newbie question
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list