getFoo1() vs. class.foo1

John J. Lee jjl at pobox.com
Sat Jun 14 10:27:58 EDT 2003


"Manuel" <manuelbastioniNOSPAM at tin.it> writes:

> Thanks!
> I love python: without set and get boring instructions,
> the class is more simple and readable.  :-)

But note that sometimes, it *is* more readable to give a set_x (and
maybe get_x) function, if you want to suggest to your users that
something interesting is going on there.


John




More information about the Python-list mailing list