Public attributes with really private data

Peter Otten __peter__ at web.de
Fri May 8 03:19:13 EDT 2009


Mark Summerfield wrote:

> I had a quick search & didn't find anything _nice_ that produced
> attributes with really private data, so I came up with a possible
> solution---for Python 3.

Do really you think what you suggest below is "nice"?

By the way, your Attribute descriptor stores the value for all instances of 
A in the same variable...

Peter





More information about the Python-list mailing list