Will Python add `{:}`, `{,}` and maybe `(,)` in or before 3.15 (October 2026)?
10
150Ṁ209Nov 1
19%
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).
Esta pergunta é gerenciada e resolvida pela Predita.
Get
1,000 to start trading!
Ordenar por:
Pessoas também estão operando
Perguntas relacionadas
Will Python 4 be released before 2030?
10% chance
When will Python 3.15 be released?
2026
Will Python 3.10 reach 90% readiness before end of life?
55% 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
In what year will Python 4.0 be released?
When will Python 3.15 readiness reach 75%?
5/5/27
When will Python 2 finally die?
[Metaculus] Will Python still be most popular programming language at the end of 2030?
71% chance