Re: [Tutor] Stupid newbie question

2005-09-28 Thread Alan Gauld
class startremail: def __init__(self): remailfile = open('U:\Bounce20.txt', 'r') #future def getday(self): def Read(self,line): from startremail import * x = startremail() print x.getday() I get the following return NameError: name 'getday' is not defined It appears that

Re: [Tutor] Stupid newbie question

2005-09-24 Thread grouchy
As long as you are using IDLE, why not let it handle indentation for you? This could very well be a dumb question, and if it is, well, excuse me :)On 9/23/05, Valone, Toren W. [EMAIL PROTECTED] wrote: I am trying to noodle thru classes with python and I built the followingclassimport timeclass

[Tutor] Stupid newbie question

2005-09-23 Thread Valone, Toren W.
I am trying to noodle thru classes with python and I built the following class import time class startremail: def __init__(self): remailfile = open('U:\Bounce20.txt', 'r') #future address/file from outlook resendfile = open('resend.txt', 'w')

Re: [Tutor] Stupid newbie question

2005-09-23 Thread Bill Campbell
On Fri, Sep 23, 2005, Valone, Toren W. wrote: I am trying to noodle thru classes with python and I built the following class import time class startremail: def __init__(self): remailfile = open('U:\Bounce20.txt', 'r') #future address/file from outlook resendfile =

Re: [Tutor] Stupid newbie question

2005-09-23 Thread Danny Yoo
On Fri, 23 Sep 2005, Valone, Toren W. wrote: I am trying to noodle thru classes with python and I built the following class. Hi Toren, Ah. Check your indentation: it appears that the definition of getday() is within the body of the class initializer __init__(). What ends up happening is