[Python-ideas] Re: Make the global/nonlocal keyword a prefix

2021-11-15 Thread Jonathan Sh.
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

[Python-ideas] Re: Make the global/nonlocal keyword a prefix

2021-11-15 Thread Jonathan Sh.
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/

[Python-ideas] Generic Type Parameters

2021-11-15 Thread Abdulla Al Kathiri
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