#python - Fri 23 Mar 2007 between 16:17 and 16:24

NY Lost Funds



[diecast]print i
TFKylebetter to use 2 lines then
(for 2 things)
more readable that way
[diecast]yea i like the clear code
CSWookieVertical whitespace is free, horizontal whitespace cost work for the headmeat.
TFKyleunless you're doing something incredibly simple or doing it in a python -c invocation
Althasergood evening
CSWookieAlthaser: Or Afternoon. How are you?
shwagIm looking for info on how to send an email from a python script, but im finding different info. One place says use import smtplib , the other says use import email. Which is the latest ?
AlthaserCSWookie g'afternoon :) I am fine thanks and you ?
Brendsmtplib is what I use.
ne78Is it impossible to catch KeyboardInterrupt in a curses program http://deadbeefbabe.org/paste/4079 ?
kbrooksshwag, email is not what you think it is.
shwag, smtplib is OK
Brendne78: Why do you want to catch KeyboardInterrupt?
CSWookieAlthaser: I'm decompressing. The work I'm doing isn't hard, but its stressful.
ne78Brend: to clean up the terminal status
Brendne78: Where is the exception raised?
ne78Brend: otherwise you get a raw terminal (versus cooked)
AlthaserCSWookie ouchh good luck mate
ne78Brend: http://deadbeefbabe.org/paste/4079
CSWookieAlthaser: It'll be done soon.
Brendne78: I am looking at that and it does not answer my question
ne78Brend: at scr.getkey
Althasernice
kbrooksCSWookie, "decompressing"?
Brendne78: I'm not sure I believe you
ne78Brend: i know about http://www.python.org/dev/peps/pep-0352/ but it seems it's a bug
shwagkbrooks: import email; server = SMTP() import smtplib; s = smtplib.SMTP() sure looks similair
kbrooksshwag, the former WONT WORK.
Brendne78: What exactly happens when you interrupt it? I
AlthaserI don't know if here is the right place to ask about compiling libpython, but I'd pretend to know how could I compile libpython with -fPIC options ? please
BrendI tried running your script on my own python and got a bizarre and probably irrelevant error message
ne78Brend: what error did you get ?
BrendAttributeError: 'module' object has no attribute 'initscr'
shwagkbrooks: its published and all. http://www.devshed.com/c/a/Python/Python-Email-Libraries-SMTP-and-Email-Parsing/3/
ne78Brend: Traceback (most recent call last): File "cursesbug.py", line 12, in <module> key=scr.getkey() KeyboardInterrupt
Brend are you under unix ?
BrendYeah. Ubuntu dapper

Page: 5 12 19 26 33 40 47 54 61 

IrcArchive

NY Lost Funds