[Tutor] Server stuff

Peter Brown peterabrown at froggy.com.au
Sun Aug 24 08:08:45 EDT 2003


Hi,

I'm very new to Python, so please be kind.

1. I'm trying to write a server program. How do I do this without looping
forever and calling time.sleep()?

2. Is there an easy way to extract a sequence of at least 6 digits from a
string. Can't rely on the digits to be in a word by themselves.

 It's mainly for text processing from a file that has to be checked if it
exists and if it does I process the file and insert into postrgesQl
database and write back to a backup file. I've been reading and googling
for days without success.

Thanks in advance.

Peter






More information about the Tutor mailing list