MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1w2prjy/pythonfeelsillegal/p6v4wld/?context=9999
r/ProgrammerHumor • u/ItsPuspendu • 2d ago
219 comments sorted by
View all comments
1.0k
theres main() in python
446 u/chawmindur 2d ago And {} (= dict()) 32 u/userhwon 2d ago Always fun that writing an empty set gets you a dict so you have to use set() explicitly to get an empty set... jeebus, Guido... 20 u/carcigenicate 2d ago {/} is being proposed so sets have an empty literal. 12 u/SoldRIP 2d ago ... As opposed to the sensible {:} for dicts, which would be consistent with their already existing syntax? 24 u/NewbornMuse 2d ago And what, change the meaning of {} from dict to set? I don't think breaking changes like that are anywhere in python's future. 3 u/minecon1776 1d ago Python 4
446
And {} (= dict())
{}
dict()
32 u/userhwon 2d ago Always fun that writing an empty set gets you a dict so you have to use set() explicitly to get an empty set... jeebus, Guido... 20 u/carcigenicate 2d ago {/} is being proposed so sets have an empty literal. 12 u/SoldRIP 2d ago ... As opposed to the sensible {:} for dicts, which would be consistent with their already existing syntax? 24 u/NewbornMuse 2d ago And what, change the meaning of {} from dict to set? I don't think breaking changes like that are anywhere in python's future. 3 u/minecon1776 1d ago Python 4
32
Always fun that writing an empty set gets you a dict so you have to use set() explicitly to get an empty set... jeebus, Guido...
20 u/carcigenicate 2d ago {/} is being proposed so sets have an empty literal. 12 u/SoldRIP 2d ago ... As opposed to the sensible {:} for dicts, which would be consistent with their already existing syntax? 24 u/NewbornMuse 2d ago And what, change the meaning of {} from dict to set? I don't think breaking changes like that are anywhere in python's future. 3 u/minecon1776 1d ago Python 4
20
{/} is being proposed so sets have an empty literal.
{/}
12 u/SoldRIP 2d ago ... As opposed to the sensible {:} for dicts, which would be consistent with their already existing syntax? 24 u/NewbornMuse 2d ago And what, change the meaning of {} from dict to set? I don't think breaking changes like that are anywhere in python's future. 3 u/minecon1776 1d ago Python 4
12
... As opposed to the sensible {:} for dicts, which would be consistent with their already existing syntax?
24 u/NewbornMuse 2d ago And what, change the meaning of {} from dict to set? I don't think breaking changes like that are anywhere in python's future. 3 u/minecon1776 1d ago Python 4
24
And what, change the meaning of {} from dict to set? I don't think breaking changes like that are anywhere in python's future.
3 u/minecon1776 1d ago Python 4
3
Python 4
1.0k
u/belabacsijolvan 2d ago
theres main() in python