Neil Girdhar
Neil Girdhar
> Dealing with dtype and/or dimensionality annotation inside this protocol seems useful and should be considered, but can possibly be done as a second step. I'm just curious, but if...
Just curious, but would it make sense to copy or move `logaddexp`, `expm1`, and `log1p` to the special function extension? While current numpy users might expect these in the main...
It might also make sense to ask whether there might eventually be a "neural network" extension that reflects the functions in [`jax.nn`](https://jax.readthedocs.io/en/latest/jax.nn.html) and [`torch.nn.functional`](https://pytorch.org/docs/stable/nn.functional.html). Would any of the above functions...
@jakevdp Yes, sorry for the delay. I've been trying to find time to do it.
@jakevdp should be ready for your review.
Thanks for the speedy and patient review!
Python 3.9 is end-of-life in 1.5 years.
Hmm, that's not what I'm seeing? ```sh ❯ pyenv global 3.9.18 ❯ pipgi pytype pytype==2024.4.11 ❯ cat a.py from __future__ import annotations def f(x: None | str) -> None: pass...
Type annotations? Also, Python 3.6 is end of life in 3 weeks, so it might simplify annotations to use Python 3.7 features immediately.
Sure, from the CPython source: ```python if self.size_read == self.chunksize and \ self.align and \ (self.chunksize & 1): dummy = self.file.read(1) ``` I prefer: ```python if (self.size_read == self.chunksize and...