Python args and kwargs snippets

This commit is contained in:
guneysus 2014-12-18 18:21:43 +02:00
parent 511c42177f
commit 4f2e0a03f1

View File

@ -208,3 +208,9 @@ snippet kwg
self.${1:var_name} = kwargs.get('$1', ${2:None}) self.${1:var_name} = kwargs.get('$1', ${2:None})
snippet lkwg snippet lkwg
${1:var_name} = kwargs.get('$1', ${2:None}) ${1:var_name} = kwargs.get('$1', ${2:None})
snippet args
*args${1:,}${0}
snippet kwargs
**kwargs${1:,}${0}
snippet akw
*args, **kwargs${1:,}${0}