Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> [...] when it would just be ‘class Foo<T>’ in almost any other language.

Good news on that front at least. PEP-895 [1] removes the need for `T = TypeVar(...)` boilerplate in Python 3.12.

[1] - https://peps.python.org/pep-0695/



Yes. Incremental change is good imo. They may actually be moving too fast.


Incremental change is good as long as the increments can themselves be changed. When you're promising indefinite backward compatibility, it's important to be VERY confident of each change before committing to it.

It seems like the price of all these small incremental changes in Python is that the language as a whole keeps falling further and further away from the 13th item in PEP20: "There should be one - and preferably only one - obvious way to do it." Also, for that matter, "Never is often better than *right* now."


I think you're right, but maybe times that those mantras change.




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

Search: