We are about to switch to a new forum software. Until then we have removed the registration on this forum.
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?