Setting function attribute from outside class

Thomas Guettler guettli at thomas-guettler.de
Sun May 25 13:40:14 EDT 2003


On Sat, May 24, 2003 at 02:51:13PM -0400, Edward C. Jones wrote:
> The following code seems to work (Python 2.2.2). Is this the best way of 
> setting a function attribute from outside a class?

I think setattr() is the best way.

 thomas

-- 
Thomas Guettler <guettli at thomas-guettler.de>
http://www.thomas-guettler.de






More information about the Python-list mailing list