durusmail: quixote-users: Accessor methods and ZODB
Accessor methods and ZODB
2004-03-25
2004-03-25
2004-03-26
2004-03-26
2004-03-26
Re: Accessor methods and ZODB
2004-03-26
Accessor methods and ZODB
John J Lee
2004-03-25
Dulcinea and its example app, Toboso, seem to consistently use accessor
methods .get_x() / .set_x(y), in place of the popular Python convention of
just using 'direct' attribute access .x / .x = y.

Why is this done?  Is it a hold-over from older versions of the ZODB, or
is there some current reason for it?

I've followed this convention in my own code, but mostly out of paranoia.


John


reply