emacs-prelude/vendor/yasnippet/snippets/python-mode/prop

16 lines
305 B
Text
Raw Normal View History

2012-02-17 22:12:32 +02:00
# contributor: Mads D. Kristensen <madsdk@gmail.com>
# name: prop
# key: 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