A matter of style: class.foo = bar vs. class.set_foo(bar)

Steve Lamb grey at despair.rpglink.com
Fri Nov 10 14:55:24 EST 2000


    OK, when setting a variable from program logic is it acceptable to set it
directly or should one create a method to set the variable?

-- 
         Steve C. Lamb         | I'm your priest, I'm your shrink, I'm your
         ICQ: 5107343          | main connection to the switchboard of souls.
-------------------------------+---------------------------------------------



More information about the Python-list mailing list