[Python-Dev] Re: Need help to debug a ssl crash on Windows which prevents merging PRs

2021-06-01 Thread Rob Cliffe via Python-Dev
Well done Victor! This stuff is way over my head, but rest assured that humble Python programmers like me appreciate all the effort put in from guys like you into improving Python. Rob Cliffe On 01/06/2021 23:14, Victor Stinner wrote: On Fri, May 28, 2021 at 6:40 PM Victor Stinner wrote: In

[Python-Dev] Re: Need help to debug a ssl crash on Windows which prevents merging PRs

2021-06-01 Thread Victor Stinner
On Fri, May 28, 2021 at 6:40 PM Victor Stinner wrote: > In the 3.10 branch, it became really hard to merge PRs because the > following ssl crashs on Windows: > https://bugs.python.org/issue44252 Update on this bug which blocked the Python 3.10 beta 2 release. It's now fully fixed! It was a simpl

[Python-Dev] [RELEASE] Python 3.10.0b2 is available

2021-06-01 Thread Pablo Galindo Salgado
After fighting with some release blockers, implementing a bunch of GC traversal functions, and fixing some pending reference leaks, we finally have Python 3.10.0 beta 2 ready for you! Thanks to everyone that helped to unblock the release! https://www.python.org/downloads/release/python-3100b2/ #

[Python-Dev] Re: The repr of a sentinel

2021-06-01 Thread Tal Einat
On Tue, May 25, 2021 at 10:09 PM Eric Nieuwland wrote: > > > To add to the suggestions already given in this thread I dug into code I > wrote some time ago. Offered as an inspiration. > > === missing.py === > > from typing import Any > > def MISSING(klass: Any) -> Any: """ create a sentinel to in

[Python-Dev] Re: The repr of a sentinel

2021-06-01 Thread Tal Einat
On Tue, May 25, 2021 at 11:25 AM Pascal Chambon wrote: > > Hello, and thanks for the PEP, > > I feel like the 3-lines declaration of a new sentinel would discourage a > bit its adoption compared to just "sentinel = object()" I now tend to agree. The new version of the draft PEP proposes a simpler

[Python-Dev] Re: The repr of a sentinel

2021-06-01 Thread Tal Einat
Thanks for this, Luciano! My main issue with using class objects is that such use of them would be unusual and potentially confusing. I think that is important in general, and doubly so for something I suggest adding to the stdlib. Additionally, I very much would like for each sentinel object to

[Python-Dev] Re: The repr of a sentinel

2021-06-01 Thread Tal Einat
Following the continued discussion, I'm currently in favor of a simple interface using a factory function, i.e. NotGiven = sentinel('NotGiven'). I've created a new GitHub repo with a reference implementation. It also includes a second version of the draft PEP, addresses some of the additional poin