On Wed, Oct 27, 2021 at 4:07 PM Christopher Barker wrote:
>
> It's not actually documented that None indicates "use the default".
>
> Which, it turns out is because it doesn't :-)
>
> In [24]: bisect.bisect([1,3,4,6,8,9], 5, hi=None)
> --
On Wed, Oct 27, 2021 at 5:14 PM Brendan Barnwell wrote:
> Now it's true that we have asymmetry, in that SIMPLE logic can be
> readably inlined as an early-bound default, whereas even simple logic
> cannot be inlined as a late-bound default because there is no inline way
> to express late-b
On 25.10.2021 21:40, [email protected] wrote:
> Due to https://www.python.org/dev/peps/pep-0554/ multi-interpreters
> implementation going really slow, I had the audicity to try an alternative
> route
> towards the same objective of implementing multicore support of python:
> instead of sharing the
On Tue, 26 Oct 2021, Christopher Barker wrote:
It's not actually documented that None indicates "use the default".
Which, it turns out is because it doesn't :-)
In [24]: bisect.bisect([1,3,4,6,8,9], 5, hi=None)
---
TypeError
On 2021-10-25 15:59, Steven D'Aprano wrote:
None of them are passed twice.
Yes, the word "passed" misses the mark.
*Moving* code from one place to another isn't *repeating* the code.
I think that captures the problem nicely. This is already possible in a much
clearer way. I'd still a
All containers do have a concept of iterators though, and the `is in` operator
can check using the iterator of the container.
___
Python-ideas mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://m
On Thu, Oct 28, 2021 at 4:52 PM Jeremiah Vivian
wrote:
>
> All containers do have a concept of iterators though, and the `is in`
> operator can check using the iterator of the container.
>
But the "in" operator isn't built on iteration, so that would be in-consistent.
What you're asking for can