[Python-Dev] Re: PEP-376 and PEP-427 interpretation

2021-03-29 Thread Theallredman via Python-Dev
Thank you. I can't think of a compelling reason someone would want to choose SHA224 over SHA256 in the context of wheel generation. It just that the PEPs are usually pretty explicit and SHA224 seemed to be implicitly excluded from RECORD files. And I'm considering the details of making a pret

[Python-Dev] Re: Status of PEP 649 -- Deferred Evaluation Of Annotations Using Descriptors

2021-03-29 Thread Larry Hastings
On 3/27/21 4:23 PM, Jelle Zijlstra wrote: Now, PEP 649 doesn't actually fix this at the moment, since it still resolves all annotations in the global scope, but that's easily fixed by removing the special case in https://github.com/larryhastings/co_annotations/blob/co_annotations/Python/compil

[Python-Dev] Re: PEP 654: Exception Groups and except* [REPOST]

2021-03-29 Thread Yury Selivanov
Just a few comments to add to Irit's response. On Sat, Mar 27, 2021 at 11:03 AM Paul Sokolovsky wrote: [..] > Bottom line: this seems like a Trio's special-purpose feature, with > good wishes of becoming the de facto standard. The bottom line is that Trio nurseries were proven to be a very usefu

[Python-Dev] Re: PEP-376 and PEP-427 interpretation

2021-03-29 Thread Paul Bryan
I suggest that SHA224 does not qualify as "SHA256 or better". Truncating any hash should not be considered equivalent or better. Reductio ad absurdum: truncate to 128 bits, 16 bits, 8 bits, or 1 bit. On Mon, 2021-03-29 at 08:15 +, Theallredman via Python-Dev wrote: > No need to be condescendin

[Python-Dev] Re: PEP-376 and PEP-427 interpretation

2021-03-29 Thread Paul Moore
On Mon, 29 Mar 2021 at 17:40, Theallredman via Python-Dev wrote: > So going back to my actual question SHA224 is disallowed in record files > because it's bit length is less then 256? It doesn't look like it's ever been excluded. The only explicit exclusions are MD5 and SHA1 as you point out. Do

[Python-Dev] Re: PEP-376 and PEP-427 interpretation

2021-03-29 Thread Theallredman via Python-Dev
No need to be condescending. Trust me when I say I know the bit length relates to the collision resistance. Also trust me when I say there are other dimensions upon which to consider one hash algo over another other then just collision resistance such as, power consumption, execution time, wheth

[Python-Dev] Re: Request for comments on final version of PEP 653 (Precise Semantics for Pattern Matching)

2021-03-29 Thread Guido van Rossum
On Mon, Mar 29, 2021 at 7:35 AM Nick Coghlan wrote: > On Mon, 29 Mar 2021, 7:47 pm Mark Shannon, wrote: > > [Guido wrote] > >> > >> > Also, I think that we should probably separate this out in two separate >> > flag sets, one for subjects and one for class patterns -- it is pretty >> > confusing

[Python-Dev] Re: Request for comments on final version of PEP 653 (Precise Semantics for Pattern Matching)

2021-03-29 Thread Nick Coghlan
On Mon, 29 Mar 2021, 7:47 pm Mark Shannon, wrote: [Guido wrote] > > > > Also, I think that we should probably separate this out in two separate > > flag sets, one for subjects and one for class patterns -- it is pretty > > confusing to merge the flag sets into a single value when their > > appli

[Python-Dev] Re: Request for comments on final version of PEP 653 (Precise Semantics for Pattern Matching)

2021-03-29 Thread Mark Shannon
Hi Guido, Thanks for the feedback. On 27/03/2021 10:15 pm, Guido van Rossum wrote: Hi Mark, Reading that spec will take some time. Can you please summarize the differences in English, in a way that is about as precise as PEP 634? I have some comments inline below as well. On Sat, Mar 27, 2