[Python-Dev] Re: The list.sort(reverse=True) method not consistent with description

2021-10-30 Thread Evpok Padding
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')

[Python-Dev] Re: Steering Council update for February

2021-03-10 Thread Evpok Padding
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

[Python-Dev] Re: fail keyword like there is pass keyword

2020-10-26 Thread Evpok Padding
`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

[Python-Dev] Re: PEP 622: Structural Pattern Matching

2020-06-25 Thread Evpok Padding
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

Re: [Python-Dev] Comparisions for collections.Counters

2018-09-05 Thread Evpok Padding
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

[Python-Dev] Comparisions for collections.Counters

2018-09-05 Thread Evpok Padding
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

Re: [Python-Dev] The current dict is not an "OrderedDict"

2017-11-07 Thread Evpok Padding
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

Re: [Python-Dev] Guarantee ordered dict literals in v3.7?

2017-11-07 Thread Evpok Padding
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-