[Python-ideas] RFC: New/update the Docs Sphinx theme: responsive, edit page links,

2021-09-22 Thread Wes Turner
Where would be the best place to discuss or just improve the CPython docs sphinx theme? What would Python need in a {PyData,} Sphinx theme fork: - [ ] ENH: add links to every docs page - [ ] ENH: responsive breakpoints for mobile devices - [ ] ENH: responsive fonts - [ ] ENH: toggle-able dark th

[Python-ideas] Re: Typing Callable Ellipsis -- support for type hints a la Callable[[int, float, ...], None]

2021-09-22 Thread Guido van Rossum
This is a question for typing-sig. Over on typing-sig we are looking at alternatives to Callable, so it's unlikely that any changes to Callable itself will be accepted. Instead of `...`, we will probably use `*args`, similar to what is used in the `def` syntax. Feel free to peruse the typing-sig

[Python-ideas] Re: itertools.compress default selectors

2021-09-22 Thread ml
Then may be we could enhance "filter" or introduce some alias? Why we have "filterfalse" and don't have "filtertrue"?Thanks!Stepan Dyatkovskiy 14.09.2021, 22:20, "Chris Angelico" :On Wed, Sep 15, 2021 at 4:58 AM Tim Peters wrote: Or perhaps the `compress()` implementation cou

[Python-ideas] Re: Typing Callable Ellipsis -- support for type hints a la Callable[[int, float, ...], None]

2021-09-22 Thread Randolf Scholz
@Valentin Berlier That would probably be possible, but the question here is, given that `Callable` is a built-in, is it sensible to expect `Callable` to support this behaviour. I would say yes, because it is extremely intuitive, especially with regards to the fact that the widely used numpy li