I am new to Python, with experience in Java, C++ and R. 

As I understand encapsulation is not a big thing in the Python world. I read 
that you can put two underscores before the name of a variable within a class 
declaration but in the many examples of code I looked at this is not widely 
used. I also read that encapsulation is "unpythonic."

Questions:

1) Is there a good text where I can read about the language philosophy? What 
practices are "pythonic" or "unpythonic"?

2) If it is in fact true that encapsulation is rarely used, how do I deal with 
the fact that other programmers can easily alter the values of members of my 
classes?

Thanks for any insights.

FS
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to