Created
August 30, 2012 17:41
Revisions
-
stober created this gist
Aug 30, 2012 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,12 @@ #!/usr/bin/env python ''' @author jstober ''' def test_static(static=[0]): static[0] += 1 return static[0] print test_static() # 1 print test_static() # 2 print test_static() # 3