It looks like you're new here. If you want to get involved, click one of these buttons!
The more I use python the more I dislike it. It seems really great at the start. But so many things are so shit.
Anyway, this works great:
class Foo: def __init__(self): global BAR BAR = -1 class Bananas(Foo): def __init__(self): Foo.__init__(self) print str(BAR) if __name__ == "__main__": b = Bananas()
But how can I do the same, but having Foo in it's own file?