[TriZPUG] pylint magic
chris at archimedeanco.com
Wed Aug 25 21:43:13 CEST 2010
Screw pylint, man. Passing in star args is not "magic".
On Wed, Aug 25, 2010 at 3:33 PM, Chris Calloway <cbc at unc.edu> wrote:
> I have some code, a function invocation, which looks like:
> 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?
> To me, the statement is just Pythonic elegance. If I already have a tuple
> appropriately ordered to match a function's parameter signature, why would I
> want to go through tuple unpacking into a bunch of new identifiers just to
> satisfy some overreaching meta-explicitness. This seems to me like a
> hobgoblin of little minds rather than enhanced readability.
> What am I blind to here? The function being called is in the same module
> and has an explicit parameter signature. With doctests. And passes pep8 and
> Please discuss amongst yourselves for my edification.
> Chris Calloway
> office: 332 Chapman Hall phone: (919) 599-3530
> mail: Campus Box #3300, UNC-CH, Chapel Hill, NC 27599
> TriZPUG mailing list
> TriZPUG at python.org
> http://trizpug.org is the Triangle Zope and Python Users Group
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the TriZPUG