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

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 Python

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 a

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 abst

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 empt

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 includes

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

2017-12-31 Thread Yahya Abou 'Imran via Python-ideas
>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. > Yes, I saw that it's not well-known. I was studying hard the internals of ABCs and ABCMeta, so I end up using it and modifying it. >The reason Ite

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 < [email protected]> 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 soon

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

2017-12-31 Thread Yahya Abou 'Imran via Python-ideas
>>>I guess a PR to fix the registry output would make sense (first file a bug >>>onbugs.python.org for it). >> >>Ok, I will! >> >> >> >Please don't hurry with this. I am going to rewrite ABCMeta in C soon. >In fact most of the work is done but I am waiting for implementation of PEP >560 to settl

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

2017-12-31 Thread Guido van Rossum
Ah, glad the mystery's solved! And sorry for the misdirection. On Sun, Dec 31, 2017 at 11:38 AM, Yahya Abou 'Imran < [email protected]> wrote: > > >>>I guess a PR to fix the registry output would make sense (first file a > bug onbugs.python.org for it). > >> > >>Ok, I will! > >> > >

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 < > [email protected]> 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

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 < > > [email protected]> wrote: > > > > > > > > >I guess a PR to fix the registry output would make sen

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 optional flags to a function. >>