Will Python add `{:}`, `{,}` and maybe `(,)` in or before 3.15 (October 2026)?
Basic
8
Ṁ1792026
20%
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).
This question is managed and resolved by Manifold.
Get
1,000
and3.00
Sort by:
Related questions
Related questions
When will Python 2 finally die?
Will Python's new No-GIL become officially supported before 2026?
70% chance
When will Python 3.15 be released?
2026
Will an AI implement a Python PEP by 2024?
12% chance
[Metaculus] Will Python still be most popular programming language at the end of 2030?
72% chance
Will Python make a πthon joke for release version 3.14?
91% chance
Will Python remain a leading language until 2030 with or without the GIL?
Will Python have partial string pattern matching in 3.14?
25% chance
There will be a Python6.9 before the year 2069
13% chance
Will Python remain a leading language until 2028 with or without the GIL?