![](https://secure.gravatar.com/avatar/2240a37aad5f5834a92809a5e5f01fe1.jpg?s=120&d=mm&r=g)
On Mon, Mar 14, 2022 at 9:49 AM Chris Angelico <rosuav@gmail.com> wrote:
On Mon, 14 Mar 2022 at 23:35, <joao.p.f.batista.97@gmail.com> wrote:
Currently: l = [] # new empty list t = () # new empty tuple s = set() # new empty set (no clean and consistent way of initializing
d = {} # new empty dictionary
Possible solution: s = {} # new empty set d = {:} # new empty dictionary (the ":" is a reference to key-value
regarding the others) <<< pairs)
Nope, that would break tons of existing code. Not gonna happen.
Of couse not. (And I mean it). - but what about keeping what exists and adding {,} for an empty set? (it is not that unlike the one-element tuple, which already exists)
ChrisA _______________________________________________ Python-ideas mailing list -- python-ideas@python.org To unsubscribe send an email to python-ideas-leave@python.org https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://mail.python.org/archives/list/python-ideas@python.org/message/PCPZPH... Code of Conduct: http://python.org/psf/codeofconduct/