[Python-ideas] working on a PEP for the __preview__ package

Antoine Pitrou solipsis at pitrou.net
Wed Jan 4 02:37:08 CET 2012

(and by the way I think __preview__ is a *very* interesting idea!)



On Wed, 4 Jan 2012 11:29:37 +1000
Nick Coghlan <ncoghlan at gmail.com> wrote:
> On Wed, Jan 4, 2012 at 3:29 AM, Antoine Pitrou <solipsis at pitrou.net> wrote:
> > On Tue, 03 Jan 2012 16:27:35 +0000
> > Robert Kern <robert.kern at gmail.com> wrote:
> >> The nice thing about the dunders is that no one will make a module with a
> >> conflicting name. That's really the common factor behind all uses of dunders:
> >> reserving a name for Python's use. Whether something is a protocol or bag of
> >> switches doesn't really enter into it.
> >
> > Plus, writing "from __preview__ import regex" looks cooler than
> > "from exp import regex".
> Dunder names also alert people that something special is going on (in
> this case, it helps alert them to the fact that the modules in this
> namespace *will* be moved in the future).
> Cheers,
> Nick.

More information about the Python-ideas mailing list