Re: email questions

2006-02-08 Thread Scott Frankel
Yes, I was doing something wrong: I was connecting to the localhost after instantiation. All better now. Thanks for the tips! Scott On Feb 8, 2006, at 11:04 AM, Carsten Haese wrote: > > Then you're doing something wrong. The line > > s = smtplib.SMTP("mail.ispname.net") instantiates an SM

Re: email questions

2006-02-08 Thread Scott Frankel
On Feb 8, 2006, at 9:47 AM, Carsten Haese wrote: > On Wed, 2006-02-08 at 12:34, Scott Frankel wrote: >> I'm looking for a way to send a simple, plain text email message >> using Python. My initial attempts are failing with the following >> error: >> >>

email questions

2006-02-08 Thread Scott Frankel
I'm looking for a way to send a simple, plain text email message using Python. My initial attempts are failing with the following error: socket.error: (61, 'Connection refused') Does this imply that I do not have the machine's smtp server running? (I don't; and I'd like to avoid se

Re: wxPython vs. pyQt

2005-03-16 Thread Scott Frankel
I have just started using wxPython. I selected it over pyQT for licensing reasons. I'm no gui app expert. But that said, I've found the toolkit approachable and the user community very helpful. Scott On Mar 16, 2005, at 9:11 PM, [EMAIL PROTECTED] wrote: I've narrowed down my toolkit selection

Re: file descriptors & fdopen

2004-12-06 Thread Scott Frankel
foo = open('foo.txt', 'w') duh. Thanks - Scott On Dec 6, 2004, at 11:27 AM, Scott Frankel wrote: Why does os.fdopen('foo.txt', 'w') require an integer? Ultimately, I want to create a new file on disk. Funny, I can't seem to suss-out how to create a ne

file descriptors & fdopen

2004-12-06 Thread Scott Frankel
Why does os.fdopen('foo.txt', 'w') require an integer? Ultimately, I want to create a new file on disk. Funny, I can't seem to suss-out how to create a new file without resorting to os.system('touch foo.txt'). ... Or maybe not so funny ... >>> foo = os.fdopen('foo.txt', 'w') Traceback (most rece

Re: knowing a file's own name

2004-11-29 Thread Scott Frankel
Thanks for the responses! I'd forgotten about using the sys module: import sys filename = sys.argv[0] Using "__file__" also works. Thanks Scott On Nov 29, 2004, at 9:37 AM, Scott Frankel wrote: I'm looking for a way to identify a filename remotely. Put differe

knowing a file's own name

2004-11-29 Thread Scott Frankel
I'm looking for a way to identify a filename remotely. Put differently, is there a way a file can get its own name from its globals()? doit.py calls exec() on a second py script, tpairs.py, to obtain a dict of the globals in tpairs.py. How can I add the filename, "tpairs.py," to the resulting d