two new snippet for python mode from user

This commit is contained in:
Zhang Chiyuan 2008-04-03 13:55:25 +00:00
parent fdb17ae897
commit 2558475460
2 changed files with 21 additions and 0 deletions

View File

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

View File

@ -0,0 +1,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