Klimi's new dotfiles with stow.
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.

17 lines
327 B

4 years ago
  1. # -*- mode: snippet -*-
  2. # contributor: Mads D. Kristensen <madsdk@gmail.com>
  3. # name: prop
  4. # --
  5. def ${1:foo}():
  6. doc = """${2:Doc string}"""
  7. def fget(self):
  8. return self._$1
  9. def fset(self, value):
  10. self._$1 = value
  11. def fdel(self):
  12. del self._$1
  13. return locals()
  14. $1 = property(**$1())
  15. $0