Commit 367b6f4b authored by Igor Gnatenko's avatar Igor Gnatenko
Browse files

snippets/python: add some basic templates


Signed-off-by: default avatarIgor Gnatenko <>
parent f2e4fca6
snippet python
#!/usr/bin/env python
snippet gpl
# ${1:$filename}
......@@ -34,3 +37,20 @@ snippet lgpl
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <>.
snippet import
import $0
snippet from
from ${1} import $0
snippet def
def ${1:function}(${2}):
snippet class
class ${1:Foo}(${2:object}):
def __init__(self{3}):
snippet main
def main():
if __name__ == "__main__":
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment