Property as a decorator in Python 2.4? -


i'm developing application tied down python 2.4. according python builtins page's description of property "the getter, setter, , deleter attributes added" in python 2.6. there still way use property decorator, or imperative use x = property(...) syntax?

you can use decorator, can only specify getter if so. can delete getter, setter, , deleter methods once have called property() though.


Comments

Popular posts from this blog

php - How can I edit my code to echo the data of child's element where my search term was found in, in XMLReader? -

javascript - Iterate over array and calculate average values of array-parts -

jQuery Ajax Render Fragments OR Whole Page -