two silly questions

bill ramsay bill.ramsay at clear.net.nz
Thu Jun 3 01:56:55 EDT 2004


Hello

just found the wonderful world of python  in the last two weeks  and I
think that it is great.

I have a couple of questions for those who are wiser a la python than
I am.

Background:

I have written a program that polls an email account, then pulls down
the email,  it then searches through the email,  and depending upon
type,  ie.  with or without attachments it does different things.  The
net result is that data is written to access tables for an external
application to extract the necessary data.

I am using win2k.  

the two questions are:

1.  when i want the program to run in a loop,  ie. poll the pop3
account every 60 seconds,  it runs the first time, then it goes into
'not responding mode' thereafter,  sometimes.    Any thoughts?  I was
using sleep(60) but it just hangs,  as i said before,  it does not
always do that either!

2.  I wish to use this program at work,  I took in an earlier version
yesterday that just wrote the data to a text file,  I wanted to make
sure the polling thing worked. on microsoft exchange [i know that it
should,  but you never know!!]  and it does .  When i was there, i
managed to get the code to run just by double clicking on the code
ICON,  seem to remember doing something with 'open with' can't seem to
do it here at home.  

Both systems run win2k.  did i do something sublimilally without
realising it?  what did i do i cannot remember,  i have tried opening
with etc.  when i do this all get is a burst of the 'black windows
box' just in the same way as putting in 'cmd' on the run thing,

as you can see i am not up on all the terms.  

if anyone can help,  i would appreciate it.

kind regards

bill ramsay.




More information about the Python-list mailing list