Skip to content

Instantly share code, notes, and snippets.

@thanos
Created July 2, 2012 19:17
Show Gist options
  • Select an option

  • Save thanos/3035081 to your computer and use it in GitHub Desktop.

Select an option

Save thanos/3035081 to your computer and use it in GitHub Desktop.
creates a python property
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