Hi,
On Sat, 30 Oct 2021 at 16:23, Raymond Bisdorff
wrote:
> >>> L = [(1, 'a'), (2, 'b'), (1, 'c'), (2, 'd'), (3, 'e')]
> >>> L.sort(reverse=True)
> >>> L
> >>> [(3, 'e'), (2, 'd'), (2, 'b'), (1, 'c'), (1, 'a')]
>
> it should be:
>
> >>> L = [(1, 'a'), (2, 'b'), (1, 'c'), (2, 'd'), (3, 'e')
Dear all,
Apparently renaming a git branch to follow the general convention is now an
unbearable outrage. It strikes me as a somewhat odd hill to die on, but
okay. However there is a code of conduct that is supposed to be followed
here https://www.python.org/psf/conduct. Let me quote
> Examples o
`raise NotImplementedError`
https://docs.python.org/3/library/exceptions.html#NotImplementedError I
think would be the canonical solution.
E
On Mon, 26 Oct 2020 at 20:34, Victor Stinner wrote:
> If you use the unittest module, I suggest you to use self.fail() instead:
> it is standard. Moreover
On Thu, 25 Jun 2020, 16:48 Eric Nieuwland, wrote:
> And maybe also an additional operator:
>
> if X matches Y:
> Z
>
This is really different from the PEP, but I like it, it reminds me of the
if let matching in Rust.
___
Python-Dev mailing list -- pyth
On Wed, 5 Sep 2018 at 18:28, Serhiy Storchaka wrote:
> There is a closed issue for this: https://bugs.python.org/issue22515.
>
Oh, thanks, I had missed that. I guess I can live with it, although I agree
with [the last comment][1] that this decision does not make a lot of sense.
But hey, who am I
Hello everyone,
According to the [doc][1], `collections.Counter` convenience intersection
and union functions are meant to help it represent multisets. However, it
currently lacks comparisons, which would make sense and seems
straightforward to implement.
Am I missing something here or should I se
On 7 November 2017 at 21:47, Chris Barker wrote:
> On Tue, Nov 7, 2017 at 11:50 AM, Tim Peters wrote:
>
>> Is it worth guaranteeing that will always "work" (as intended)? Not
>> to me, but I do have code that relies on it now -
>
>
> This is critically important -- no one looks at the language
ation from the lesson and teach something
> practical instead.
>
> ___
> Python-Dev mailing list
> Python-Dev@python.org
> https://mail.python.org/mailman/listinfo/python-dev
> Unsubscribe: https://mail.python.org/mailman/options/python-