It doesn't "improve" and adds new syntax but just removes one line
___
Python-ideas mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Messa
thanks Steve, I didn't know that.
Now my idea looks useless for me, too.
___
Python-ideas mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Hello,
Instead of writing 'class A(Generic[T]): ...', can we do something like rust
lang, i.e., 'class A[T]: ...'? Rust uses but in python we use [T]. This
reflects the type annotation for the class nicely. For example, a: A[T]. It’s
weird seeing the word Generic inside the class inheritance