[Python-ideas] cell phone gnu os

www.leap.cc kn0m0n3 at gmail.com
Sat May 10 16:24:57 CEST 2014



Niki Spahiev <niki.spahiev at gmail.com> wrote:

>Hello,
>
>Currently expression (a=1, b=2) is a syntax error. If it's defined to 
>mean (('a',1), ('b',2)) it can be used when making OrderedDict or 
>anything that requires named ordered args e.g.
>
>OrderedDict((a=1, b=2))
>
>another variant with more changes in VM is
>
>OrderedDict(**(a=1, b=2))
>
>Niki
>
>_______________________________________________
>Python-ideas mailing list
>Python-ideas at python.org
>https://mail.python.org/mailman/listinfo/python-ideas
>Code of Conduct: http://python.org/psf/codeofconduct/


More information about the Python-ideas mailing list