[Python-Dev] Object customization (was: Arbitrary attributes on funcs and methods)

Andrew M. Kuchling akuchlin@mems-exchange.org
Fri, 14 Apr 2000 10:15:37 -0400 (EDT)


>Yes, of course people will use it to get the effect of function statics.  OK
>by me.  People do the same thing today with class data attributes (i.e., to

Wait, the attributes added to a function are visible inside the
function?  (I haven't looked that closely at the patch?) That strikes
me as a much more significant change to Python's scoping, making it
local, function attribute, then global scope. a I thought of the
attributes as labels that could be attached to a callable object for
the convenience of some external system, but the function would remain
blissfully unaware of the external meaning attached to itself.  -1
from me if a function's attributes are visible to code inside the
function; +0 if they're not.

-- 
A.M. Kuchling			http://starship.python.net/crew/amk/
The paradox of money is that when you have lots of it you can manage life
quite cheaply. Nothing so economical as being rich.
  -- Robertson Davies, _The Rebel Angels_