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 <levkivs...@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.hettin...@gmail.com> wrote: > >> >> > On Jan 17, 2017, at 11:41 AM, Roberto Martínez < >> robertomartin...@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@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@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)
_______________________________________________ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com