getFoo1() vs. class.foo1

John J. Lee jjl at
Sat Jun 14 16:27:58 CEST 2003

"Manuel" <manuelbastioniNOSPAM at> 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.


More information about the Python-list mailing list