[Python-Dev] Re: Help with the grail browser

2021-05-30 Thread Martin Panter
On 30/05/2021, Prakhar Sehgal wrote: > The latest version of Grail is 0.6 which was released in 1999 was made for > Python 1 but I want to make one compatible with Python 3. But I need help > for that. Currently me and Guido van Rossum are working on this. Any help > will be welcomed. This is the

[Python-Dev] Re: name for new Enum decorator

2021-05-30 Thread Barney Gale
+1 on 'complete'. If 'enum.unique()' means 'every value has at most one name', then perhaps `enum.complete()` can mean 'every value has at least one name'? Or is that not accurate? Other suggestions: 'occupied', 'full', 'exhaustive'. Barney On Mon, 31 May 2021 at 00:02, Jeff Allen wrote: >

[Python-Dev] Re: name for new Enum decorator

2021-05-30 Thread Jeff Allen
On 28/05/2021 04:24, Ethan Furman wrote: The flags RED, GREEN, and BLUE are all canonical, while PURPLE and WHITE are aliases for certain flag combinations.  But what if we have something like:     class Color(Flag):     RED = 1    # 0001     BLUE = 4   # 0100    

[Python-Dev] Re: Implementing async enumerate

2021-05-30 Thread Thomas Grainger
https://aiostream.readthedocs.io/en/stable/operators.html#aiostream.stream.enumerate Is a nice version of an async enumerate. It also handles aclosing ___ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to

[Python-Dev] Origins of iterators and iterables

2021-05-30 Thread Guido van Rossum
On Sun, May 30, 2021 at 9:10 AM Julien Palard wrote: > > > is the fact some things (like generators) give iterators instead of > > iterables as a hint they're not "rewindable" was initially thought > > of and part of the design, or it emerged later. > Hm... I don't think that was a big part

[Python-Dev] Re: python-iterators mailing list on SourceForge

2021-05-30 Thread Julien Palard via Python-Dev
Le 5/30/21 à 4:31 PM, Guido van Rossum a écrit : > What are you trying to get from the archives? It is *possible* that I > have a personal archive saved somewhere. I'm not even sure I remember my initial question... But it could be: > is the fact some things (like generators) give iterators

[Python-Dev] Help with the grail browser

2021-05-30 Thread Prakhar Sehgal
The latest version of Grail is 0.6 which was released in 1999 was made for Python 1 but I want to make one compatible with Python 3. But I need help for that. Currently me and Guido van Rossum are working on this. Any help will be welcomed. This is the link for the GitHub repo:

[Python-Dev] Re: python-iterators mailing list on SourceForge

2021-05-30 Thread Guido van Rossum
What are you trying to get from the archives? It is *possible* that I have a personal archive saved somewhere. On Sun, May 30, 2021 at 02:39 Julien Palard wrote: > Le 5/29/21 à 11:14 PM, Guido van Rossum a écrit : > > It looks like what's left of the archives is largely spam? > > Yes. > >

[Python-Dev] Re: python-iterators mailing list on SourceForge

2021-05-30 Thread Julien Palard via Python-Dev
Le 5/29/21 à 11:14 PM, Guido van Rossum a écrit : > It looks like what's left of the archives is largely spam? Yes. SourceForge staff has manually hidden most spam on this list a few days ago to help see better, but the interesting discussion is no longer here. They checked in the mbox file on