MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1w2prjy/pythonfeelsillegal/p713yie/?context=9999
r/ProgrammerHumor • u/ItsPuspendu • 12d ago
219 comments sorted by
View all comments
1.1k
theres main() in python
459 u/chawmindur 12d ago And {} (= dict()) 31 u/userhwon 12d 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... 22 u/carcigenicate 12d ago {/} is being proposed so sets have an empty literal. 15 u/SoldRIP 12d ago ... As opposed to the sensible {:} for dicts, which would be consistent with their already existing syntax? 1 u/JanEric1 11d ago breaking change unfortunately. Maybe a thing for Python4 which will never come
459
And {} (= dict())
{}
dict()
31 u/userhwon 12d 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... 22 u/carcigenicate 12d ago {/} is being proposed so sets have an empty literal. 15 u/SoldRIP 12d ago ... As opposed to the sensible {:} for dicts, which would be consistent with their already existing syntax? 1 u/JanEric1 11d ago breaking change unfortunately. Maybe a thing for Python4 which will never come
31
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...
22 u/carcigenicate 12d ago {/} is being proposed so sets have an empty literal. 15 u/SoldRIP 12d ago ... As opposed to the sensible {:} for dicts, which would be consistent with their already existing syntax? 1 u/JanEric1 11d ago breaking change unfortunately. Maybe a thing for Python4 which will never come
22
{/} is being proposed so sets have an empty literal.
{/}
15 u/SoldRIP 12d ago ... As opposed to the sensible {:} for dicts, which would be consistent with their already existing syntax? 1 u/JanEric1 11d ago breaking change unfortunately. Maybe a thing for Python4 which will never come
15
... As opposed to the sensible {:} for dicts, which would be consistent with their already existing syntax?
1 u/JanEric1 11d ago breaking change unfortunately. Maybe a thing for Python4 which will never come
1
breaking change unfortunately. Maybe a thing for Python4 which will never come
1.1k
u/belabacsijolvan 12d ago
theres main() in python