summaryrefslogtreecommitdiffstats
path: root/emacs.d/snippets/text-mode/python-mode/propsg
blob: e09d82af994e66d9d4d5b9019e07d3ddb9dcb3fd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
#contributor : Julio Carlos Menendez <godinblack@gmail.com>
#name : _get_foo ... _set_foo ... foo=property(...)
# --
def _set_${1:foo}(self, value):
    self._$1 = value

def _get_$1(self):
    return self._$1

$1 = property(_get_$1, _set_$1)

$0