Skip to content

Commit

Permalink
Merge pull request #342 from WnP/patch-2
Browse files Browse the repository at this point in the history
key word argument get (kwg)
  • Loading branch information
honza committed Apr 15, 2014
2 parents 0370652 + 593a3b7 commit 9a7a600
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions snippets/python.snippets
Original file line number Diff line number Diff line change
Expand Up @@ -204,3 +204,7 @@ snippet epydoc
snippet dol
def ${1:__init__}(self, *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})

0 comments on commit 9a7a600

Please sign in to comment.