[Tutor] Debugging multithreaded programs in python

2006-07-31 Thread Noufal Ibrahim
Greetings all, A friend here is trying to debug a rather badly written python program which spawns off lots of threads here and there. Are there any frameworks that I can reccommend that would ease his pain? On a more general note, it seems rather strange that I can't quickly google and f

Re: [Tutor] question about headers and smtplib

2006-07-31 Thread Justin Ezequiel
When I first started with Python, I used MimeWriter to create E-mails. Then some mail servers rejected my E-mails. Some research (google) indicated (to me) that I needed a MIME-Version header. (Can't recall now if I also needed a Content-Type header.) Anyway, more research (Python docs) indicate

Re: [Tutor] syntax error

2006-07-31 Thread Carroll, Barry
Hello Chris, > -Original Message- > Date: Mon, 31 Jul 2006 15:29:13 -0700 (PDT) > From: Christopher Spears <[EMAIL PROTECTED]> > Subject: [Tutor] syntax error > To: tutor@python.org > Message-ID: <[EMAIL PROTECTED]> > Content-Type: text/plain; charset=iso-8859-1 > > My brain has gone squi

Re: [Tutor] syntax error

2006-07-31 Thread Alan Gauld
> My brain has gone squishy. :-) I know the feeling... > Here is the error message: from linkedPriorityQueue import * > Traceback (most recent call last): > File "", line 1, in ? > File "linkedPriorityQueue.py", line 27 >else node.cargo <= self.head.cargo: >^ > SyntaxEr

Re: [Tutor] syntax error

2006-07-31 Thread John Fouhy
On 01/08/06, Christopher Spears <[EMAIL PROTECTED]> wrote: > Traceback (most recent call last): > File "", line 1, in ? > File "linkedPriorityQueue.py", line 27 >else node.cargo <= self.head.cargo: >^ > SyntaxError: invalid syntax > > I am not sure what this means. Everything is

[Tutor] syntax error

2006-07-31 Thread Christopher Spears
My brain has gone squishy. I am combining a linked list with a priority queue. This is the last exercise out of How To Think Like A Computer Scientist (Chapter 19). class Node: def __init__(self, cargo=None, next=None): self.cargo = cargo self.next = next

Re: [Tutor] The Self

2006-07-31 Thread Alan Gauld
"Luke Paireepinart" <[EMAIL PROTECTED]> wrote >> I would love to hear some of your 'layman's definitions' on the >> self. > However, when you have a 'Class' object, it has its own collection > of variables that it can modify, and its own set of functions that > work > on its variables. Because

Re: [Tutor] question about headers and smtplib

2006-07-31 Thread Dustin J. Mitchell
shawn bright wrote: > the only difference in one from the other is that in the headers of the > other app (not my python script) > there exist the following lines: > > MIME-Version: 1.0 > X-Mailer: OstroSoft SMTP Control (4.0.20) > Content-Type: text/plain; charset="us-ascii" > Content-Transfer-En

[Tutor] question about headers and smtplib

2006-07-31 Thread shawn bright
Hey there, me again with another question about headers.. if i use my python script to send an email, it gets rejected by some providers. but another app that i use can send the same email and it gets thru. i have sent myself test messages from both apps and looked at the headers. the only differ

Re: [Tutor] The Self

2006-07-31 Thread shawn bright
Im not the OP, but this clears up some stuff for ma about "self". I thank you for your time to post this. -shawnOn 7/31/06, Luke Paireepinart <[EMAIL PROTECTED]> wrote: Sebastian Smith wrote:> I am new to Python, real new. I am loving the language and learning> fast but I have hit a wall with the

Re: [Tutor] The Self

2006-07-31 Thread Luke Paireepinart
Sebastian Smith wrote: > I am new to Python, real new. I am loving the language and learning > fast but I have hit a wall with the 'self'. I have Googled and > searched and read a few definitions but it still doesn't make sense to > me. > > I would love to hear some of your 'layman's definitions' o

[Tutor] The Self

2006-07-31 Thread Sebastian Smith
I am new to Python, real new. I am loving the language and learning fast but I have hit a wall with the 'self'. I have Googled and searched and read a few definitions but it still doesn't make sense to me. I would love to hear some of your 'layman's definitions' on the self. Thank you all, Ben.