<p dir="ltr"><br>
On 20 May 2013 00:57, "Guido van Rossum" <<a href="mailto:gvanrossum@gmail.com">gvanrossum@gmail.com</a>> wrote:<br>
><br>
> Hm. Wouldn'tvevery call site be slowed down by checking for that flag?</p>
<p dir="ltr">Yeah, I forgot about having to push everything through the tp_call slot, so we can't easily limit the ordering check to just those cases where the callable accepts arbitrary kwargs.</p>
<p dir="ltr">Cheers,<br>
Nick.</p>
<p dir="ltr">> —<br>
> Sent from Mailbox<br>
><br>
><br>
> On Sun, May 19, 2013 at 7:42 AM, Nick Coghlan <<a href="mailto:ncoghlan@gmail.com">ncoghlan@gmail.com</a>> wrote:<br>
>><br>
>> On Sun, May 19, 2013 at 11:01 PM, Antoine Pitrou <<a href="mailto:solipsis@pitrou.net">solipsis@pitrou.net</a>> wrote: <br>
>> > The main use case seems to be the OrderedDict constructor itself. <br>
>> > Otherwise, I can't think of any situation where I would've wanted it. <br>
>><br>
>> I've had a couple related to populating other mappings where order <br>
>> matters, at least from a predictability and readability perspective, <br>
>> even if it's not strictly required from a standards compliance point <br>
>> of view (think writing XML attributes, etc). <br>
>><br>
>> I quite liked the idea of a simple flag attribute on function objects <br>
>> that the interpreter checked, with a decorator in functools (or even <br>
>> the builtins) to set it. It's not a particularly elegant solution, but <br>
>> it would get the job done with minimal performance impact on existing <br>
>> functions. <br>
>><br>
>> Cheers, <br>
>> Nick. <br>
>><br>
>> -- <br>
>> Nick Coghlan | <a href="mailto:ncoghlan@gmail.com">ncoghlan@gmail.com</a> | Brisbane, Australia <br>
>> _______________________________________________ <br>
>> Python-Dev mailing list <br>
>> <a href="mailto:Python-Dev@python.org">Python-Dev@python.org</a> <br>
>> <a href="http://mail.python.org/mailman/listinfo/python-dev">http://mail.python.org/mailman/listinfo/python-dev</a> <br>
>> Unsubscribe: <a href="http://mail.python.org/mailman/options/python-dev/guido%40python.org">http://mail.python.org/mailman/options/python-dev/guido%40python.org</a> <br>
><br>
><br>
</p>