From fa6d71e49e3ab109b5a56f5bcb99805a6f30b221 Mon Sep 17 00:00:00 2001 From: Steeve Date: Wed, 9 Apr 2014 12:27:32 +0200 Subject: [PATCH] add def overloading methode (dol) I add it because I use it many times a day -not only for the `__init__` method- this snippet is very useful to me, no need to call super and handle all args and kwargs, and no more typo errors :D --- snippets/python.snippets | 3 +++ 1 file changed, 3 insertions(+) diff --git a/snippets/python.snippets b/snippets/python.snippets index a7bb708..ac9573b 100644 --- a/snippets/python.snippets +++ b/snippets/python.snippets @@ -201,3 +201,6 @@ snippet epydoc @raise e: ${0: Description} """ +snippet dol + def ${1:__init__}(self, *args, **kwargs): + super(${0:ClassName}, self).$1(*args, **kwargs)