[triangle-zpug] static list in python
Joseph Mack NA3T
jmack at wm7d.net
Fri Mar 14 17:22:32 CET 2008
On Fri, 14 Mar 2008, Josh Johnson wrote:
> I recall two meanings for static in programming. Static can mean a
> persistent value, like an internal counter in a list (I think that's
> what you want),
yes
> but I've also heard the term mean "a class method that
> is accessed like a library instead of an instance method".
sorry, forgot about this (I guess "static" is overloaded).
> I'm not sure if python supports the sort of persistent variable I think
> you want (anybody else know?). If not, you may have to start with a list
> and have that list be returned by your function and then subsequently
> passed to it again:
This doesn't seem a whole lot different to just having l
being global, which is what I'm doing for the moment.
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 TriZPUG
mailing list