>>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 defi
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
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
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
> resendf
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') #currentl