Emacs config utilizing prelude as a base
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12 lines
260 B

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