use member functions to access data in Python classes?

beliavsky at aol.com beliavsky at aol.com
Wed Jun 18 12:15:15 EDT 2003


In C++, it is generally recommended to declare the data within a class
private and to access the data using member functions. Do experienced
Python programmers usually use member functions to access data within
classes, or do they access the data directly?




More information about the Python-list mailing list