Created
July 2, 2012 19:17
-
-
Save thanos/3035081 to your computer and use it in GitHub Desktop.
creates a python property
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def aproperty(): | |
| doc = "The aproperty property." | |
| def fget(self): | |
| return self._aproperty | |
| def fset(self, value): | |
| self._aproperty = value | |
| def fdel(self): | |
| del self._aproperty | |
| return locals() | |
| aproperty = property(**aproperty()) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment