two new snippets for python-mode from Orestis Markou

This commit is contained in:
Zhang Chiyuan 2008-03-11 15:47:27 +00:00
parent 8adb9f49ee
commit d05cb05a9d
2 changed files with 12 additions and 0 deletions

View File

@ -0,0 +1,7 @@
#name : class ... :
# --
class ${1:cname}(${2:object}):
"docstring for $1"
def __init__(self, ${3:arg}):
self.$3 = $3
$0

View File

@ -0,0 +1,5 @@
#name : def ... :
# --
def ${1:fname}(${self}):
"docstring for $1"
${pass}$0