[TriZPUG] pylint magic

Bradley A. Crittenden brad.crittenden at gmail.com
Wed Aug 25 21:45:04 CEST 2010


On Aug 25, 2010, at 15:33 , Chris Calloway wrote:

> I have some code, a function invocation, which looks like:
> 
> expand(*_config)
> 
> pylint flags that statement with the message:
> 
> "Used * or ** magic"
> 
> Is using tuple or dict expansion in a function argument really considered "magic" in a community sense?
> 
> Is this a PEP violation which got by me? Or just a pylint bias?

I found this description:

"""
W0142:	Used * or * magic* 
Used when a function or method is called using *args or **kwargs to dispatch arguments. This doesn't improve readility and should be used with care.
"""

If it bugs you add a disable-msg.
# pylint: disable-msg=W0142




More information about the TriZPUG mailing list