How do I declare global vars or class vars in Python ?

Paddy O'Loughlin patrick.oloughlin at gmail.com
Fri Feb 20 10:16:13 EST 2009


2009/2/20 Bruno Desthuilliers <bruno.42.desthuilliers at websiteburo.invalid>:
> Note that while you *can* do direct access to the implementation attribute
> (here, '_A' for property 'A'), you don't *need* to so (and usually shouldn't
> - unless you have a very compelling reason).

Interesting. Why shouldn't you?
I haven't used the property() function before and probably have no
call to, but when you say "usually shouldn't", what is there against
it?

-- 
"Ray, when someone asks you if you're a god, you say YES!"



More information about the Python-list mailing list