[Python-Dev] Re: PEP 646 (Variadic Generics): final call for comments

2021-04-06 Thread Stephan Hoyer
I just wanted to thank Matthew & Pradeep for writing this PEP and for clarifications to the broader context of PEP 646 for array typing in https://github.com/python/peps/pull/1904. As someone who is heavily involved in the Python numerical computing community (e.g., NumPy, JAX, Xarray), but who is

[Python-Dev] Request for review: binary op dispatch rules for subclasses

2018-09-14 Thread Stephan Hoyer
Over a year ago, I made a pull request ( https://github.com/python/cpython/pull/1325) to fix a long-standing issue with how Python handles dispatch for arithmetic binary operations involving subclasses (https://bugs.python.org/issue30140). I pinged the bug several times, but I'm still waiting for

Re: [Python-Dev] Is static typing still optional?

2017-12-22 Thread Stephan Hoyer
On Thu, Dec 21, 2017 at 6:39 AM Ivan Levkivskyi wrote: > For me, the three options for "don't care" have a bit different meaning: > > * typing.Any: this class is supposed to be used with static type checkers, > but this field is too dynamic > * ... (ellipsis): this class may or may not be used wi

Re: [Python-Dev] Accepting PEP 560 -- Core support for typing module and generic types

2017-12-14 Thread Stephan Hoyer
On Thu, Dec 14, 2017 at 4:29 PM Yury Selivanov wrote: > On Thu, Dec 14, 2017 at 7:03 PM, Guido van Rossum > wrote: > My motivation to add the slot wasn't the performance: it's just not > possible to have a class-level __getitem__ on types defined in C. The > only way is to define a base class in

[Python-Dev] Review for bpo-30140: fix binop dispatch for subclasses

2017-11-01 Thread Stephan Hoyer
Hi python-dev, It's been over a month without any activity and over a week since my ping, and I'm still waiting for a review on my pull request: https://bugs.python.org/issue30140 https://github.com/python/cpython/pull/1325 I would greatly appreciate if someone has time to take a look. This is my