Will Python add `{:}`, `{,}` and maybe `(,)` in or before 3.15 (October 2026)?
6
33
Ṁ124Ṁ150
2026
25%
chance
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).
Get Ṁ600 play money
Sort by:
Related questions
[Metaculus] Will Python still be most popular programming language at the end of 2030?
74% chance
When will Python 3.15 be released?
2026
Will C++ be superseded by another systems programming language by the end of 2027?
58% chance
Will the popularity of these programming language increase in 2024?
When will Python lose the first position on TIOBE Index leaderboard?
Considering the TIOBE index, will Julia pass R, COBOL, Fortran and Matlab in 2024?
26% chance
Will Python remain a leading language until 2030 with or without the GIL?
Will Python's new No-GIL become officially supported before 2026?
76% chance
Will statement expressions become part of the official ISO C Standard before 2028?
32% chance