[Python-ideas] Python-ideas Digest, Vol 122, Issue 100

Lesego Moloko ernest.moloko at gmail.com
Thu Jan 26 11:33:01 EST 2017


W

Sent from Lesego's iPhone

> On 26 Jan 2017, at 18:28, python-ideas-requests

> @python.org wrote:
> 
> Send Python-ideas mailing list submissions to
>    python-ideas at python.org
> 
> To subscribe or unsubscribe via the World Wide Web, visit
>    https://mail.python.org/mailman/listinfo/python-ideas
> or, via email, send a message with subject or body 'help' to
>    python-ideas-request at python.org
> 
> You can reach the person managing the list at
>    python-ideas-owner at python.org
> 
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Python-ideas digest..."
> 
> 
> Today's Topics:
> 
>   1. Re: globals should accept parenteses for extending beyond 1
>      line (Nick Coghlan)
>   2. Is it Python 3 yet? (Victor Stinner)
>   3. Re: Is it Python 3 yet? (Paul Moore)
>   4. Re: Is it Python 3 yet? (Ryan Birmingham)
>   5. Re: Is it Python 3 yet? (Nick Timkovich)
> 
> 
> ----------------------------------------------------------------------
> 
> Message: 1
> Date: Thu, 26 Jan 2017 17:02:55 +0100
> From: Nick Coghlan <ncoghlan at gmail.com>
> To: MRAB <python at mrabarnett.plus.com>
> Cc: "python-ideas at python.org" <python-ideas at python.org>
> Subject: Re: [Python-ideas] globals should accept parenteses for
>    extending beyond 1 line
> Message-ID:
>    <CADiSq7f9s6fUm53T+ip5eCbhdeqrvWG+iHw0X7T4QEpAsr5tTA at mail.gmail.com>
> Content-Type: text/plain; charset=UTF-8
> 
>> On 23 January 2017 at 22:29, MRAB <python at mrabarnett.plus.com> wrote:
>>> On 2017-01-23 20:09, Nick Timkovich wrote:
>>> 
>>> Related and probably more common is the need for the line-continuation
>>> operator for long/multiple context managers with "with". I assume that's
>>> come up before, but was it also just a low priority rather than any
>>> technical reason?
>>> 
>> It has come up before, and there is a technical reason, namely the syntactic
>> ambiguity when parsing. Not impossible to fix, but probably not worth the
>> added complexity.
> 
> Right, it's the fact parentheses are already allowed there, but mean
> something quite different:
> 
>>>> with (1, 2, 3): pass
>    ...
>    Traceback (most recent call last):
>      File "<stdin>", line 1, in <module>
>    AttributeError: __enter__
> 
> These days, I'd personally be in favour of changing the parsing of
> parentheses in that situation, as if we were going to add meaningful
> context management behaviour to tuples we would have done it by now,
> and having the name bindings next to their expressions is easier to
> read than having them all at the end:
> 
>    with (cm1() as a,
>             cm2() as b,
>             cm3() as c):
>        ...
> 
> Relative to tuples-as-context-managers, such an approach would also
> avoid reintroducing the old resource management problems that saw
> contextlib.nested removed and replaced with contextlib.ExitStack.
> 
> Cheers,
> Nick.
> 
> -- 
> Nick Coghlan   |   ncoghlan at gmail.com   |   Brisbane, Australia
> 
> 
> ------------------------------
> 
> Message: 2
> Date: Thu, 26 Jan 2017 17:11:17 +0100
> From: Victor Stinner <victor.stinner at gmail.com>
> To: python-ideas <python-ideas at python.org>
> Subject: [Python-ideas] Is it Python 3 yet?
> Message-ID:
>    <CAMpsgwbOmZHYtV87OxABeb=e6ujUy0tOtiQEg7T=OwOg7peFsA at mail.gmail.com>
> Content-Type: text/plain; charset=UTF-8
> 
> Hi,
> 
> The download button of https://www.python.org/ currently gives the
> choice between Python 2.7 and 3.6. I read more and more articles
> saying that we reached a point where Python 3 became more popular than
> Python 2, Python 3 has now enough new features to convince developers,
> etc.
> 
> Is it time to "hide" Python 2.7 from the default choice and only show
> Python 3.6 *by default*?
> 
> For example, I expect a single big [DOWNLOAD] button which would start
> the download of Python 3.6 for my platform.
> 
> If we cannot agree on hiding Python 2 by default, maybe we can at
> least replace the big [DOWNLOAD] button of Python 2 with a smaller
> button or replace it with a link to a different download page?
> 
> Latest news: Django 2.0 and Pyramid 2.0 will simply drop Python 2 support.
> 
> Victor
> 
> 
> ------------------------------
> 
> Message: 3
> Date: Thu, 26 Jan 2017 16:21:30 +0000
> From: Paul Moore <p.f.moore at gmail.com>
> To: Victor Stinner <victor.stinner at gmail.com>
> Cc: python-ideas <python-ideas at python.org>
> Subject: Re: [Python-ideas] Is it Python 3 yet?
> Message-ID:
>    <CACac1F_8sp0337BUFkSh-f=Aqvt01NkNTrinwCg=vERB-hO_7w at mail.gmail.com>
> Content-Type: text/plain; charset=UTF-8
> 
>> On 26 January 2017 at 16:11, Victor Stinner <victor.stinner at gmail.com> wrote:
>> The download button of https://www.python.org/ currently gives the
>> choice between Python 2.7 and 3.6. I read more and more articles
>> saying that we reached a point where Python 3 became more popular than
>> Python 2, Python 3 has now enough new features to convince developers,
>> etc.
>> 
>> Is it time to "hide" Python 2.7 from the default choice and only show
>> Python 3.6 *by default*?
>> 
>> For example, I expect a single big [DOWNLOAD] button which would start
>> the download of Python 3.6 for my platform.
> 
> +1
> 
> On a similar note, I always get caught out by the fact that the
> Windows default download is the 32-bit version. Are we not yet at a
> point where a sufficient majority of users have 64-bit machines, and
> 32-bit should be seen as a "specialist" choice?
> 
> Paul
> 
> 
> ------------------------------
> 
> Message: 4
> Date: Thu, 26 Jan 2017 11:23:23 -0500
> From: Ryan Birmingham <rainventions at gmail.com>
> To: Victor Stinner <victor.stinner at gmail.com>
> Cc: python-ideas <python-ideas at python.org>
> Subject: Re: [Python-ideas] Is it Python 3 yet?
> Message-ID:
>    <CAJU2dcqizWz+A1-H3z=nEErTyZeLgFzrhmZMOgCLGjaFTCc_CQ at mail.gmail.com>
> Content-Type: text/plain; charset="utf-8"
> 
> It's certainly an interesting transition period.
> I'm not sure that the community is quite ready to just drop 2.7, but we
> could take a hint from angular <https://angularjs.org/>'s solution to this
> issue and use small descriptions to guide more people to 3.6 rather than
> 2.7, then move to 2.7 being substantially smaller, then eventually to
> dropping 2.7.
> 
> -Ryan Birmingham
> 
> On 26 January 2017 at 11:11, Victor Stinner <victor.stinner at gmail.com>
> wrote:
> 
>> Hi,
>> 
>> The download button of https://www.python.org/ currently gives the
>> choice between Python 2.7 and 3.6. I read more and more articles
>> saying that we reached a point where Python 3 became more popular than
>> Python 2, Python 3 has now enough new features to convince developers,
>> etc.
>> 
>> Is it time to "hide" Python 2.7 from the default choice and only show
>> Python 3.6 *by default*?
>> 
>> For example, I expect a single big [DOWNLOAD] button which would start
>> the download of Python 3.6 for my platform.
>> 
>> If we cannot agree on hiding Python 2 by default, maybe we can at
>> least replace the big [DOWNLOAD] button of Python 2 with a smaller
>> button or replace it with a link to a different download page?
>> 
>> Latest news: Django 2.0 and Pyramid 2.0 will simply drop Python 2 support.
>> 
>> Victor
>> _______________________________________________
>> Python-ideas mailing list
>> Python-ideas at python.org
>> https://mail.python.org/mailman/listinfo/python-ideas
>> Code of Conduct: http://python.org/psf/codeofconduct/
>> 
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <http://mail.python.org/pipermail/python-ideas/attachments/20170126/4e0db564/attachment-0001.html>
> 
> ------------------------------
> 
> Message: 5
> Date: Thu, 26 Jan 2017 10:27:57 -0600
> From: Nick Timkovich <prometheus235 at gmail.com>
> To: Victor Stinner <victor.stinner at gmail.com>
> Cc: python-ideas <python-ideas at python.org>
> Subject: Re: [Python-ideas] Is it Python 3 yet?
> Message-ID:
>    <CAHkxivcEJ_w8vkLy9Zu9sxT7i8WTsfuTty-t=iojHBxp_6G5dw at mail.gmail.com>
> Content-Type: text/plain; charset="utf-8"
> 
> After Django 1.11 (alpha 1 out now, final in few months, LTS EOL 2020) was
> branched out from master on GH, it was pretty impressive & heartening to
> see massive commits against master that removed Python 2 compatibility from
> such a popular library.
> 
> On Thu, Jan 26, 2017 at 10:11 AM, Victor Stinner <victor.stinner at gmail.com>
> wrote:
> 
>> Hi,
>> 
>> The download button of https://www.python.org/ currently gives the
>> choice between Python 2.7 and 3.6. I read more and more articles
>> saying that we reached a point where Python 3 became more popular than
>> Python 2, Python 3 has now enough new features to convince developers,
>> etc.
>> 
>> Is it time to "hide" Python 2.7 from the default choice and only show
>> Python 3.6 *by default*?
>> 
>> For example, I expect a single big [DOWNLOAD] button which would start
>> the download of Python 3.6 for my platform.
>> 
>> If we cannot agree on hiding Python 2 by default, maybe we can at
>> least replace the big [DOWNLOAD] button of Python 2 with a smaller
>> button or replace it with a link to a different download page?
>> 
>> Latest news: Django 2.0 and Pyramid 2.0 will simply drop Python 2 support.
>> 
>> Victor
>> _______________________________________________
>> Python-ideas mailing list
>> Python-ideas at python.org
>> https://mail.python.org/mailman/listinfo/python-ideas
>> Code of Conduct: http://python.org/psf/codeofconduct/
>> 
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <http://mail.python.org/pipermail/python-ideas/attachments/20170126/b1d09ba7/attachment.html>
> 
> ------------------------------
> 
> Subject: Digest Footer
> 
> _______________________________________________
> Python-ideas mailing list
> Python-ideas at python.org
> https://mail.python.org/mailman/listinfo/python-ideas
> 
> 
> ------------------------------
> 
> End of Python-ideas Digest, Vol 122, Issue 100
> **********************************************


More information about the Python-ideas mailing list