accessing class data members

Graham Ashton graham at coms.com
Wed Jul 4 03:33:44 EDT 2001


In article <3B420804.9882D166 at bioeng.ucsd.edu>, "Curtis Jensen"
<cjensen at bioeng.ucsd.edu> wrote:

> In many OO languages, and theory, it is often the case that when you
> want to know the value of some data member, that a function is written
> to return that value.  However, in Python it seems that people just
> access the data member directly.

I started a similar thread on 25 June. The subject was "Defining accessor
methods". I got some interesting answers...

--
Graham



More information about the Python-list mailing list