Merge pull request #342 from WnP/patch-2

key word argument get (kwg)
This commit is contained in:
Honza Pokorny 2014-04-15 04:23:58 -03:00
commit 9a7a60022a

View File

@ -204,3 +204,7 @@ snippet epydoc
snippet dol snippet dol
def ${1:__init__}(self, *args, **kwargs): def ${1:__init__}(self, *args, **kwargs):
super(${0:ClassName}, self).$1(*args, **kwargs) super(${0:ClassName}, self).$1(*args, **kwargs)
snippet kwg
self.${1:var_name} = kwargs.get('$1', ${2:None})
snippet lkwg
${1:var_name} = kwargs.get('$1', ${2:None})