New-Class.sublime-snippet (433B)
1 <snippet> 2 <content><![CDATA[class ${1:ClassName}(${2:object}): 3 ${3/.+/"""/}${3:docstring for $1}${3/.+/"""\n/}${3/.+/\t/}def __init__(self${4/([^,])?(.*)/(?1:, )/}${4:arg}): 4 ${5:super($1, self).__init__()} 5 ${4/(\A\s*,\s*\Z)|,?\s*([A-Za-z_][a-zA-Z0-9_]*)\s*(=[^,]*)?(,\s*|$)/(?2:\t\tself.$2 = $2\n)/g} $0]]></content> 6 <tabTrigger>class</tabTrigger> 7 <scope>source.python</scope> 8 <description>New Class</description> 9 </snippet>