Hacker News new | past | comments | ask | show | jobs | submit login

Yes, if Python was made from scratch, then perhaps function is better (I don't really mind).

But breaking one of the most commonly used statements for what is essentially aesthetics? No thanks. Introduce a function that does the same if you like.

That's precisely my point, this syntax change (and many others) was entirely unnecessary, put people off upgrading, then got them told off for being dinosauric luddites.

Frankly, it's not even that consistent. Is `del dict[key]` necessary when you can call `dict.pop`?

Either way, these would be fine discussions to have, but not when you consider the people upgrading thei codebases.




> Is `del dict[key]` necessary when you can call `dict.pop`?

Reason for Python 4 detected!




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: