E
Evan
Hi
I have a short script that makes 2 calls to methods in another script
as follows:
import canPlaces as canp
callOne=canp.addMe(3,5)
callTwo=canp.estocStn()
The 2 methods in the second script are:
def addMe(a,b)
sumAb=a+b
return sumAb
def estocStn():
estoc={'lat':29.15,'lon':-15.667,'place':'ESTOC'}
return estoc
Why is it that the first call works fine, but the second tells me
'global name 'self' is not defined'? What I want is to have the
dictionary 'estoc' available in my calling script.
Thanks, Evan
I have a short script that makes 2 calls to methods in another script
as follows:
import canPlaces as canp
callOne=canp.addMe(3,5)
callTwo=canp.estocStn()
The 2 methods in the second script are:
def addMe(a,b)
sumAb=a+b
return sumAb
def estocStn():
estoc={'lat':29.15,'lon':-15.667,'place':'ESTOC'}
return estoc
Why is it that the first call works fine, but the second tells me
'global name 'self' is not defined'? What I want is to have the
dictionary 'estoc' available in my calling script.
Thanks, Evan