Re: [Tutor] #NameError: global name is not defined

2005-05-12 Thread Jacob S.
> Hi, > > I'm having difficulty understanding why the following code doesn't work: > > > getfr.py > #import pymetar > # > #class wReport: > #def __init__(self,metarcode="CYYC"): #weather for calgary INTL > #self.METARCODE=metarcode > #rf=pymetar.ReportFetcher(self.METARCODE) > #

Re: [Tutor] #NameError: global name is not defined

2005-05-12 Thread Kent Johnson
Aaron Elbaz wrote: > Hi, > > I'm having difficulty understanding why the following code doesn't work: > > > getfr.py > #import pymetar > # > #class wReport: > #def __init__(self,metarcode="CYYC"): #weather for calgary INTL > #self.METARCODE=metarcode > #rf=pymetar.ReportFetch

[Tutor] #NameError: global name is not defined

2005-05-12 Thread Aaron Elbaz
Hi, I'm having difficulty understanding why the following code doesn't work: getfr.py #import pymetar # #class wReport: #def __init__(self,metarcode="CYYC"): #weather for calgary INTL #self.METARCODE=metarcode #rf=pymetar.ReportFetcher(self.METARCODE) #rep=rf.FetchRep