Class instantiation

Paul McNett p at ulmcnett.com
Wed Aug 23 15:31:59 EDT 2006


Colin J. Williams wrote:
> class arSpread(object):
>    def __init__(self, fileId= None, ar= None):
>      if fileId:
>        if ar is not None:
>          print fileId
>          self.connect(fileID, mode= 'r')       # open sheet in the read mode
>        else:
>          self.connect(fileID, mode= 'w')       # open the sheet in the 

'dOH! <smack's head>. Change to self.connect(fileId, ...)

:)


-- 
Paul McNett
http://paulmcnett.com
http://dabodev.com




More information about the Python-list mailing list