[Python-Dev] collections.abc for data and non-data descriptors

Guido van Rossum guido at python.org
Wed Jan 18 10:35:47 EST 2017


I'd rather wait until support for protocols has been added to PEP 484.

On Wed, Jan 18, 2017 at 2:25 AM, Ivan Levkivskyi <levkivskyi at gmail.com>
wrote:

> A random thought: typing has ABCs for protocols, even more than
> collections.abc has (e.g. typing.SupportsInt). Some support for descriptors
> has been added to mypy recently.
> Maybe it makes sense to add support for descriptor protocol in typing?
>
> --
> Ivan
>
>
> On 18 January 2017 at 05:44, Raymond Hettinger <
> raymond.hettinger at gmail.com> wrote:
>
>>
>> > On Jan 17, 2017, at 11:41 AM, Roberto Martínez <
>> robertomartinezp at gmail.com> wrote:
>> >
>> > Oh, I understand. Maybe is not worth the effort anyway.
>>
>> FWIW, I'm also in the camp of thinking it is not worth the effort.  Until
>> there is a demonstrated need (something than can't be met by checking for
>> __set__), the default position should be to stick with a core usable set of
>> ABCs that are know to have real value.  Each new ABC has a non-trivial
>> maintenance burden and requires extra effort on the part of users to learn
>> and remember.
>>
>>
>> Raymond
>> _______________________________________________
>> Python-Dev mailing list
>> Python-Dev at python.org
>> https://mail.python.org/mailman/listinfo/python-dev
>> Unsubscribe: https://mail.python.org/mailman/options/python-dev/levkivsky
>> i%40gmail.com
>>
>
>
> _______________________________________________
> Python-Dev mailing list
> Python-Dev at python.org
> https://mail.python.org/mailman/listinfo/python-dev
> Unsubscribe: https://mail.python.org/mailman/options/python-dev/
> guido%40python.org
>
>


-- 
--Guido van Rossum (python.org/~guido)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-dev/attachments/20170118/cb787e91/attachment.html>


More information about the Python-Dev mailing list