> The comments explain the situation pretty well.
Unfortunately the formatting has been lost so I'm not totally
clear whats going on.
BUT it does look like you have posted the class definition
but not the driver code that actually causes the error.
> class Game:
> def __init__(self,screen):
> pr
Jason Massey wrote:
> I've got a problem with scope that I can't say I've ever encountered.
My guess is that later in setupPlayers() you assign to a variable 'player'.
When you do this, every reference to the variable in the function is a local
reference. For example:
>>> x=1
>>> def bump():
I've got a problem with scope that I can't say I've ever encountered.
The comments explain the situation pretty well.
import player
class Game:
def __init__(self,screen):
self.market = Market.Market()
self.countries = pickle.load(open("sup.coords",'r'))