From fe7aad7695bd091bba60f66e5feeda6229f3431c Mon Sep 17 00:00:00 2001 From: ZyX Date: Sat, 16 Aug 2014 18:30:25 +0400 Subject: [PATCH] Update documentation for `Powerline.init` --- powerline/__init__.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/powerline/__init__.py b/powerline/__init__.py index 716c8abf..dd3d37c3 100644 --- a/powerline/__init__.py +++ b/powerline/__init__.py @@ -350,7 +350,11 @@ class Powerline(object): config_loader=None): '''Do actual initialization. - __init__ function only stores the arguments. + __init__ function only stores the arguments and runs this function. This + function exists for powerline to be able to reload itself: it is easier + to make ``__init__`` store arguments and call overriddable ``init`` than + tell developers that each time they override Powerline.__init__ in + subclasses they must store actual arguments. ''' self.ext = ext self.run_once = run_once