summaryrefslogtreecommitdiffstats
path: root/emacs.d/snippets/text-mode/python-mode/prop
blob: 107730a2092820459be61d23326b9e276177f646 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# 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