Skip to content

Instantly share code, notes, and snippets.

@anaved
Created July 12, 2017 22:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anaved/3b43e62f55968fa537b6c4da2668ff3c to your computer and use it in GitHub Desktop.
Save anaved/3b43e62f55968fa537b6c4da2668ff3c to your computer and use it in GitHub Desktop.
Declare without decorator.
class MyOtherProperty(object):
def __init__(self, name):
self.name = name
def getXName(self):
return self.name
def setXName(self, val):
self.name = val
def deleteXName(self):
del self.name
xname = property(getXName, setXName, deleteXName, "here is all the doc you want")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment