Re: [Tutor] diving into py question

2005-05-19 Thread Chelan Farsight
Thanks!
You were right about the double underscore, however, I am still
getting the error on line 7...hrmm
any other ideas?

On 5/19/05, Max Noel [EMAIL PROTECTED] wrote:
 
 On May 19, 2005, at 22:18, Chelan Farsight wrote:
 
  I am using the online book Dive Into Python.
  I ran the first program given and have run into an error on line 7 at
  the colon.  Now I imagine that there is probably a corrections page at
  the site, but I am interested in knowing why it won't work as much as
  what I need to do to correct it.  Any help would be appreciated.  The
  script follows:
 
 
  if_name_ == _main_:
 
  The number of underscores is incorrect. Magic names in Python
 start and end with two underscores. The line should be changed to:
 
 
 if __name__ == __main__:
 
 
 Hope that helps,
 -- Max
 maxnoel_fr at yahoo dot fr -- ICQ #85274019
 Look at you hacker... A pathetic creature of meat and bone, panting
 and sweating as you run through my corridors... How can you challenge
 a perfect, immortal machine?
 

___
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] Re: Q A

2005-03-04 Thread Chelan Farsight
Okay this is a real question I have and I am not trying to defend the
actions of Mr. Chui.  I simply wanted to make sure that I have joined
the right list.  Are we allowed to ask total n00b questions on this
list?  If not what level of understanding is presumed before someone
should post a question?
Again, please do not misunderstand, I have no qualms with *refusing*
to do someone's homework for them.  I just want to make sure that
total newbies are welcome here.  If not then a reccomendation for
another list would be greatly appreciated.
Thanks for your patience and help,
chelan


On Thu, 3 Mar 2005 22:58:31 -0800 (PST), Danny Yoo
[EMAIL PROTECTED] wrote:
 
 [Meta note to other folks on the list: I'm sorry for letting this post
 through; I was rushing, and I should have been more careful when going
 through my moderation queue.]
 
 
 On Fri, 25 Feb 2005, liew choon chui wrote:
 
  Here are two question to need some solution.
 
 Hi Lieu Choon Chui,
 
 I do not want to be rude, but, bluntly speaking, you have to do your own
 work.  Asking us to do it for you is a bit insulting, and I hope you
 understand you've just made a terrible netiquette blunder.  Your homework
 is yours to solve.
 
 Please read:
 
 http://www.catb.org/~esr/faqs/smart-questions.html
 
 If you have questions about Python, we will be happy to help you.  But
 don't dump homework questions on us and expect a useful response.
 
 ___
 Tutor maillist  -  Tutor@python.org
 http://mail.python.org/mailman/listinfo/tutor

___
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor