[Python-3000] Library Change Request: change functools.partial.keywords to kwargs

Nick Coghlan ncoghlan at gmail.com
Wed Feb 20 00:14:56 CET 2008


Brett Cannon wrote:
> On Feb 19, 2008 11:54 AM, hashcollision <hashcollision at gmail.com> wrote:
>> I have a library change request: currently partial Objects created by
>> functools.partial has the "keywords" attribute. However, the standard
>> name for something like it is kwargs. I request that it be renamed to
>> "kwargs".
> 
> -1
> 
> The change has minor benefit while breaking code in the process. If
> you want this to happen it is going to take at least a full release
> cycle of having a deprecation warning on the old attribute name and I
> still don't see enough benefit to bother.

Calling 'kwargs' a standard name is overstating the case quite a bit as 
well (I always use '**kwds' myself).

Cheers,
Nick.

P.S. -1 if that wasn't obvious ;)

-- 
Nick Coghlan   |   ncoghlan at gmail.com   |   Brisbane, Australia
---------------------------------------------------------------
             http://www.boredomandlaziness.org


More information about the Python-3000 mailing list