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.
16 lines
305 B
16 lines
305 B
# contributor: Mads D. Kristensen <madsdk@gmail.com>
|
|
# name: prop
|
|
# key: prop
|
|
# --
|
|
def ${1:foo}():
|
|
doc = """${2:Doc string}"""
|
|
def fget(self):
|
|
return self._$1
|
|
def fset(self, value):
|
|
self._$1 = value
|
|
def fdel(self):
|
|
del self._$1
|
|
return locals()
|
|
$1 = property(**$1())
|
|
|
|
$0
|