Jonathan Fine <jfine2...@gmail.com> added the comment:

This is was closed and tagged as resolved in 2012. The status has not been 
changed since then.

Using dict(a=1, ...) provides a workaround, but only when the keys are valid as 
variable names. The general workaround is something like
    helper([
        (1, 'a'),
        (2, 'b'),
        #etc
    ])

The helper is necessary:
>>> [(1, 2)] * 5
[(1, 2), (1, 2), (1, 2), (1, 2), (1, 2)]
>>> dict([(1, 2)] * 5)
{1: 2}

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue16385>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to