function attributes are like function objects

Geoffrey Gerrietts geoff at homegain.com
Fri Feb 2 14:31:00 EST 2001


I'm pretty new to the discussion, and definitely underinformed,
but I have a question or two.

Has the addition of function attributes included the addition of an
introspection mechanism to allow the function access to its own
attributes? In other words, can a function use its attributes to
provide the moral equivalent of a static variable, or a closure?

Or are function attributes pretty much accessible only to those
who know the function by name?

Thanks,
--G.

---
Geoff Gerrietts <geoff at homegain.com>
Software Engineer, HomeGain.com
510-655-0800 x4320




More information about the Python-list mailing list