[Python-projects] pylint W0142 recommended corrections
Gurganus, Brant L
gurganbl at rose-hulman.edu
Wed Jul 11 15:57:59 CEST 2007
I am working on some Python code where Pylint gives a warning of:
W: 31:ProxyFactory._init_instance: Used * or ** magic
The basic code is:
def _init_instance(self, *args, **kwargs):
self.__class__._original.__dict__["__init__"](self, *args, **kwargs)
The only other method in my mind for doing this would be to use apply, but the *args, **kwargs method appears to be favored over apply right now.
Is there a recommended way to correct this or is this a case where silencing the warning is a better solution?
Brant Gurganus
http://www.rose-hulman.edu/~gurganbl
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.logilab.org/pipermail/python-projects/attachments/20070711/b0f93327/attachment.htm
More information about the Python-Projects
mailing list