[prev in list] [next in list] [prev in thread] [next in thread]
List: python-dev
Subject: Re: [Python-Dev] PEP 408 -- Standard library __preview__ package
From: Steven D'Aprano <steve () pearwood ! info>
Date: 2012-02-04 11:25:05
Message-ID: 4F2D1591.9000806 () pearwood ! info
[Download RAW message or body]
Terry Reedy wrote:
> On 2/3/2012 6:18 PM, Steven D'Aprano wrote:
>
>>> Now we're talking about having to add __preview__ into that mix too?
>>
>> As I understand it, Guido nixed that idea. (Or did I imagine that?)
>
> No, you are right, discussion should cease. It is already marked
> 'rejected' and listed under Abandoned, Withdrawn, and Rejected PEPs.
>
>> Preview modules will be just added to the std lib as normal, and you
>> have to read the docs to find out they're preview.
>
> What's New should say so too.
A thought comes to mind...
It strikes me that it would be helpful sometimes to programmatically recognise
"preview" modules in the std lib. Could we have a recommendation in PEP 8 that
such modules should have a global variable called PREVIEW, and non-preview
modules should not, so that the recommended way of telling them apart is with
hasattr(module, "PREVIEW")?
--
Steven
_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: http://mail.python.org/mailman/options/python-dev/python-dev%40progressive-comp.com
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic