mirror of
https://github.com/joaotavora/yasnippet.git
synced 2025-10-14 05:23:04 +00:00
15 lines
359 B
Plaintext
15 lines
359 B
Plaintext
# -*- mode: snippet -*-
|
|
# key: property
|
|
# contributor: Translated from TextMate Snippet
|
|
# name: New Property
|
|
# --
|
|
def ${1:foo}():
|
|
doc = "${2:The $1 property.}"
|
|
def fget(self):
|
|
${3:return self._$1}
|
|
def fset(self, value):
|
|
${4:self._$1 = value}
|
|
def fdel(self):
|
|
${5:del self._$1}
|
|
return locals()
|
|
$1 = property(**$1())$0 |