[Chicago] order of keyword arguments
Ted Pollari
tcp at mac.com
Thu Feb 5 15:36:48 CET 2009
On Feb 4, 2009, at 9:39 PM, Carl Karsten wrote:
> Igor Sylvester wrote:
>> Is this worthy of a PEP?
>> On Wed, Feb 4, 2009 at 9:05 PM, Ian Bicking <ianb at colorstudy.com>
>> wrote:
>>> On Wed, Feb 4, 2009 at 12:07 PM, Igor Sylvester
>>> <igorsyl at gmail.com> wrote:
>>>
>>>> Hi Everyone,
>>>>
>>>> Is there a way to obtain the order of keyword arguments in this
>>>> example:
>>>>
>>>> def foo(**kargs):
>>>> print kargs.items()
>>>>
>>>> The call foo(A=0, B=1) could print (('A', 0), ('B', 1)) or (('B',
>>>> 1),
>>>> ('A', 0)).
>
> What is the use case for this?
+1
The first step in making a viable PEP would be showing a clear use-
case where the is clearly needed. I'm not saying there isn't one, but
I'd like to see why you think it's PEP-worthy.
-t
More information about the Chicago
mailing list