Source

python emacs / yasnippet-0.6.1c / snippets / text-mode / python-mode / prop

Full commit
# contributor: Mads D. Kristensen <madsdk@gmail.com>
# name: prop
# --
def ${1:foo}():
   doc = """${2:Doc string}"""
   def fget(self):
       return self._$1
   def fset(self, value):
       self._$1 = value
   def fdel(self):
       del self._$1
   return locals()
$1 = property(**$1())

$0