Re: [Python-ideas] a set of enum.Enum values rather than the construction of bit-sets as the "norm"?

2017-12-31 Thread Franklin? Lee
On Sun, Dec 31, 2017 at 12:09 PM, MRAB wrote: > On 2017-12-31 08:13, Paddy3118 wrote: >> >> Hmm, yea I had not thought of how it would look - I had thought formost of >> not needing to necessarily learn about bitsets.when learning about passing a >> large number of

Re: [Python-ideas] Improve ABCs _dump_registry() readability

2017-12-31 Thread Ivan Levkivskyi
On 31 December 2017 at 20:05, Antoine Pitrou wrote: > On Sun, 31 Dec 2017 19:31:06 +0100 > Ivan Levkivskyi > wrote: > > > On 31 December 2017 at 19:24, Yahya Abou 'Imran via Python-ideas < > > python-ideas@python.org> wrote: > > > > > > > > >I guess a

Re: [Python-ideas] Improve ABCs _dump_registry() readability

2017-12-31 Thread Antoine Pitrou
On Sun, 31 Dec 2017 19:31:06 +0100 Ivan Levkivskyi wrote: > On 31 December 2017 at 19:24, Yahya Abou 'Imran via Python-ideas < > python-ideas@python.org> wrote: > > > > > >I guess a PR to fix the registry output would make sense (first file a > > bug on bugs.python.org

Re: [Python-ideas] Improve ABCs _dump_registry() readability

2017-12-31 Thread Ivan Levkivskyi
On 31 December 2017 at 19:24, Yahya Abou 'Imran via Python-ideas < python-ideas@python.org> wrote: > > >I guess a PR to fix the registry output would make sense (first file a > bug on bugs.python.org for it). > > Ok, I will! > > Please don't hurry with this. I am going to rewrite ABCMeta in C

Re: [Python-ideas] Improve ABCs _dump_registry() readability

2017-12-31 Thread Guido van Rossum
Yeah, I guess few developers have needed to use _dump_registry(), and also it's easy enough to just access e.g. Iterator._abc_registry yourself. The reason Iterator._abc_registry is empty is that no class directly registered with it -- they are all registered with e.g. Sequence. The cache

Re: [Python-ideas] a set of enum.Enum values rather than the construction of bit-sets as the "norm"?

2017-12-31 Thread MRAB
On 2017-12-31 08:13, Paddy3118 wrote: Hmm, yea I had not thought of how it would look - I had thought formost of not needing to necessarily learn about bitsets.when learning about passing a large number of optional flags to a function. Although the default could be None, interpreted as an

Re: [Python-ideas] Add an UML class diagram to the collections.abc module documentation

2017-12-31 Thread Yahya Abou 'Imran via Python-ideas
>Terry Reedy writes: > >>B. Be consistent on placement of inherited versus added methods. Always >>>list inherited first? Different fonts, as suggested, might be >>>good. >> > I would prefer listing added methods first. I don't understand why... In the table of the documentation page, the

Re: [Python-ideas] Add an UML class diagram to the collections.abc module documentation

2017-12-31 Thread Stephen J. Turnbull
Sorry about the premature send. Terry Reedy writes: > B. Be consistent on placement of inherited versus added methods. Always > list inherited first? Different fonts, as suggested, might be > good. I would prefer listing overridden and added methods first, because there's a good chance I

Re: [Python-ideas] Add an UML class diagram to the collections.abc module documentation

2017-12-31 Thread Stephen J. Turnbull
Terry Reedy writes: > B. Be consistent on placement of inherited versus added methods. Always > list inherited first? Different fonts, as suggested, might be > good. I would prefer listing added methods first. ___ Python-ideas mailing list

Re: [Python-ideas] a set of enum.Enum values rather than the construction of bit-sets as the "norm"?

2017-12-31 Thread Paddy3118
Hmm, yea I had not thought of how it would look - I had thought formost of not needing to necessarily learn about bitsets.when learning about passing a large number of optional flags to a function. Although the default could be None, interpreted as an empty set of zero values.; a set of one or