This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author jfine2358
Recipients Albert.Ferras, Ramchandra Apte, benjamin.peterson, ebfe, gregory.p.smith, jcea, jfine2358, r.david.murray, remi.lapeyre, rhettinger, terry.reedy
Date 2019-03-11.15:46:12
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1552319172.11.0.9037401197.issue16385@roundup.psfhosted.org>
In-reply-to
Content
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}
History
Date User Action Args
2019-03-11 15:46:12jfine2358setrecipients: + jfine2358, rhettinger, terry.reedy, gregory.p.smith, jcea, benjamin.peterson, r.david.murray, ebfe, Ramchandra Apte, Albert.Ferras, remi.lapeyre
2019-03-11 15:46:12jfine2358setmessageid: <1552319172.11.0.9037401197.issue16385@roundup.psfhosted.org>
2019-03-11 15:46:12jfine2358linkissue16385 messages
2019-03-11 15:46:12jfine2358create