Last commit before tagging and releasing

This commit is contained in:
capitaomorte
2009-08-29 17:59:02 +00:00
parent 15c7703b5b
commit b8dcf61367
640 changed files with 4360 additions and 77 deletions

View File

@@ -0,0 +1,15 @@
# -*- 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

View File

@@ -0,0 +1,9 @@
# -*- mode: snippet -*-
# key: try
# contributor: Translated from TextMate Snippet
# name: Try/Except
# --
try:
${1:pass}
except ${2:Exception}, ${3:e}:
${4:raise $3}

View File

@@ -0,0 +1,11 @@
# -*- mode: snippet -*-
# key: try
# contributor: Translated from TextMate Snippet
# name: Try/Except/Else
# --
try:
${1:pass}
except ${2:Exception}, ${3:e}:
${4:raise $3}
else:
${5:pass}

View File

@@ -0,0 +1,13 @@
# -*- mode: snippet -*-
# key: try
# contributor: Translated from TextMate Snippet
# name: Try/Except/Else/Finally
# --
try:
${1:pass}
except${2: ${3:Exception}, ${4:e}}:
${5:raise}
else:
${6:pass}
finally:
${7:pass}

View File

@@ -0,0 +1,11 @@
# -*- mode: snippet -*-
# key: try
# contributor: Translated from TextMate Snippet
# name: Try/Except/Finally
# --
try:
${1:pass}
except ${2:Exception}, ${3:e}:
${4:raise $3}
finally:
${5:pass}

View File

@@ -0,0 +1,7 @@
# -*- mode: snippet -*-
# key: ifmain
# contributor: Translated from TextMate Snippet
# name: if __name__ == '__main__'
# --
if __name__ == '__main__':
${1:main()}$0