Will Python add `{:}`, `{,}` and maybe `(,)` in or before 3.15 (October 2026)?
8
150Ṁ1792026
20%
chance
1H
6H
1D
1W
1M
ALL
See https://discuss.python.org/t/add-the-ability-to-declare-an-empty-dict-as/25213/19
I made a proposal with a modified grammar some years ago that would make
{,}
the empty set. If there was a real desire for this, a similar change could be made so that both{,} == set()
and{:} == dict()
such that{}
could, eventually over a very long time, be removed.One thing that actually changing the grammar unveiled was that once
{,}
becomes a legal literal, it becomes extremely easy to make(,)
legal, which IMO is another wart on the language (parentheses don’t make tuples, commas do; oh, except for an empty tuple, then you must always use parentheses and no comma).
This question is managed and resolved by Manifold.
Get
1,000 to start trading!
People are also trading
Related questions
When will Python 3.15 be released?
2026
Will Python 4 be released before 2030?
8% chance
Will Python make a πthon joke for release version 3.14?
95% chance
Will Python 3.10 reach 90% readiness before end of life?
50% chance
Will Python have partial string pattern matching in 3.14?
1% chance
Will Python's new No-GIL become officially supported before 2026?
77% chance
Will python without GIL be released before end of 2025?
99% chance
There will be a Python6.9 before the year 2069
13% chance
Will Python 3.12 reach 85% readiness before end of life?
52% chance
Will Python 3.11 reach 85% readiness before end of life?
52% chance