Adding static typing to Python

Fernando Pérez fperez528 at
Tue Feb 19 01:01:31 CET 2002

Courageous wrote:

> One of the things I like about C sharp is their use of attributes,
> where you can define getters and setters on an attribute, but
> otherwise the attribute is simply used as if it were a public one.
> An objects attributes can thereby be used as a published aspect of
> its interface safely, but no one will be the wiser if you manipulate
> the getter and setter code.

Just curious, isn't there something quite similar to what you describe in 
py2.2? I've only glanced at it so I could be wrong...



More information about the Python-list mailing list