9 File: ${1:`Filename('$1.py', 'foo.py')`}
10 Author: ${2:`g:snips_author`}
17 for ${1:needle} in ${2:haystack}:
21 class ${1:ClassName}(${2:object}):
22 """${3:docstring for $1}"""
23 def __init__(self, ${4:arg}):
24 ${5:super($1, self).__init__()}
29 def ${1:fname}(${2:`indent('.') ? 'self' : ''`}):
30 """${3:docstring for $1}"""
33 def ${1:fname}(${2:`indent('.') ? 'self' : ''`}):
37 def ${1:mname}(self, ${2:arg}):
42 doc = "${2:The $1 property.}"
45 def fset(self, value):
49 ${1:var} = lambda ${2:vars} : ${3:action}
52 snippet try Try/Except
55 except ${2:Exception}, ${3:e}:
57 snippet try Try/Except/Else
60 except ${2:Exception}, ${3:e}:
64 snippet try Try/Except/Finally
67 except ${2:Exception}, ${3:e}:
71 snippet try Try/Except/Else/Finally
74 except ${2:Exception}, ${3:e}:
80 # if __name__ == '__main__':
82 if __name__ == '__main__':