@python.org wrote:
Send Python-ideas mailing list submissions to
python-ideas@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@python.org
You can reach the person managing the list at
python-ideas-owner@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@gmail.com>
To: MRAB <python@mrabarnett.plus.com>
Cc: "python-ideas@python.org" <python-ideas@python.org>
Subject: Re: [Python-ideas] globals should accept parenteses for
extending beyond 1 line
Message-ID:
<CADiSq7f9s6fUm53T+ip5eCbhdeqrvWG+iHw0X7T4QEpAsr5tTA@mail.gmail.com>
Content-Type: text/plain; charset=UTF-8
On 23 January 2017 at 22:29, MRAB <python@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@gmail.com | Brisbane, Australia
------------------------------
Message: 2
Date: Thu, 26 Jan 2017 17:11:17 +0100
From: Victor Stinner <victor.stinner@gmail.com>
To: python-ideas <python-ideas@python.org>
Subject: [Python-ideas] Is it Python 3 yet?
Message-ID:
<CAMpsgwbOmZHYtV87OxABeb=e6ujUy0tOtiQEg7T=OwOg7peFsA@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@gmail.com>
To: Victor Stinner <victor.stinner@gmail.com>
Cc: python-ideas <python-ideas@python.org>
Subject: Re: [Python-ideas] Is it Python 3 yet?
Message-ID:
<CACac1F_8sp0337BUFkSh-f=Aqvt01NkNTrinwCg=vERB-hO_7w@mail.gmail.com>
Content-Type: text/plain; charset=UTF-8
On 26 January 2017 at 16:11, Victor Stinner <victor.stinner@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@gmail.com>
To: Victor Stinner <victor.stinner@gmail.com>
Cc: python-ideas <python-ideas@python.org>
Subject: Re: [Python-ideas] Is it Python 3 yet?
Message-ID:
<CAJU2dcqizWz+A1-H3z=nEErTyZeLgFzrhmZMOgCLGjaFTCc_CQ@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@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@python.org
https://mail.python.org/mailman/listinfo/python-ideas
Code of Conduct: http://python.org/psf/codeofconduct/