emacs-prelude/vendor/yasnippet/snippets/python-mode/propsg
2012-02-17 22:12:32 +02:00

13 lines
No EOL
260 B
Text

# contributor: Julio Carlos Menendez <godinblack@gmail.com>
# name: _get_foo ... _set_foo ... foo=property(...)
# key: propsg
# --
def _set_${1:foo}(self, value):
self._$1 = value
def _get_$1(self):
return self._$1
$1 = property(_get_$1, _set_$1)
$0