Static Variables in Python?
tac-tics
tactics40 at gmail.com
Mon Jul 31 17:11:32 EDT 2006
> But of course:
>
> >>> def fun():
> global x = 10
>
> SyntaxError: invalid syntax
> >>>
global x
x = 10
Close enough ^^;
More information about the Python-list
mailing list