On Fri, Nov 3, 2017 at 6:47 PM, Antoine Pitrou <solip...@pitrou.net> wrote:
> On Fri, 3 Nov 2017 12:46:33 -0400 > "Eric V. Smith" <e...@trueblade.com> wrote: > > On 11/3/2017 12:15 PM, Victor Stinner wrote: > > > Hi, > > > > > > 2017-11-03 15:36 GMT+01:00 Guido van Rossum <gu...@python.org>: > > >> Maybe we should remove typing from the stdlib? > > >> https://github.com/python/typing/issues/495 > > > > > The typing module is not used yet in the stdlib, so there is no > > > technically reason to keep typing part of the stdlib. IMHO it's > > > perfectly fine to keep typing and annotations out of the stdlib, since > > > the venv & pip tooling is now rock solid ;-) > > > > I'm planning on using it for PEP 557: > > https://www.python.org/dev/peps/pep-0557/#class-variables > > > > The way the code currently checks for this should still work if typing > > is not in the stdlib, although of course it's assuming that the name > > "typing" really is the "official" typing library. > > I don't think other modules should start relying on the typing module at > runtime. > They already do, as I've noted in my message about dependency injection, and I find this quite elegant. Previously, similar projects used decorators, or less elegant constructs. S. -- Stefane Fermigier - http://fermigier.com/ - http://twitter.com/sfermigier - http://linkedin.com/in/sfermigier Founder & CEO, Abilian - Enterprise Social Software - http://www.abilian.com/ Chairman, Free&OSS Group / Systematic Cluster - http://www.gt-logiciel-libre.org/ Co-Chairman, National Council for Free & Open Source Software (CNLL) - http://cnll.fr/ Founder & Organiser, PyData Paris - http://pydata.fr/ --- “You never change things by fighting the existing reality. To change something, build a new model that makes the existing model obsolete.” — R. Buckminster Fuller
_______________________________________________ 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