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

Nick Coghlan ncoghlan at gmail.com
Wed Jan 4 02:29:37 CET 2012

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).


Nick Coghlan   |   ncoghlan at gmail.com   |   Brisbane, Australia

More information about the Python-ideas mailing list