[triangle-zpug] static list in python

Joseph Mack NA3T jmack at wm7d.net
Fri Mar 14 15:20:37 UTC 2008


I'm trying to figure out the python equivalent of having a 
static list in a function. I could have the list global, but 
I assume that's no more kosher in python than anywhere 
else.

I have found how to make a module static

@staticmethod
def aStaticMethod(x, y, z):

but I don't know if this is the solution or not yet (I don't 
think I've ever had a static function). I don't need the 
function to be static, just a variable in the function.

One posting said that static variables aren't needed in 
python, that I should use module level functions, but I 
haven't found anything helpful on doing that.

Any suggestions?

Thanks Joe

-- 
Joseph Mack NA3T EME(B,D), FM05lw North Carolina
jmack (at) wm7d (dot) net - azimuthal equidistant map
generator at http://www.wm7d.net/azproj.shtml
Homepage http://www.austintek.com/ It's GNU/Linux!



More information about the triangle-zpug mailing list