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
Post a Comment