[Python-ideas] Add from __experimental__ import bla [was: Should we move to replace re with regex?]

Guido van Rossum guido at python.org
Tue Aug 30 18:47:54 CEST 2011


I'm sorry, the idea was never to add extra syntax to "from
__experimental__". It was supposed to be just a plain import -- in
fact plainer than "from __future__". There is hardly a need to use the
double underscores; "from experimental" should work just as well.

Why? It wasn't meant to be a language change. Just a convention to set
aside an experimental namespace in the stdlib. If we're going to
attempt to solve the problem of versioned dependencies, I recommend
doing it outside the language syntax, at the package installer level,
sort of the way setuptools / distribute do it. If you want to explore
that idea, please read up on how it's done there and if you have ideas
for improvement, start a new thread here.

-- 
--Guido van Rossum (python.org/~guido)



More information about the Python-ideas mailing list