[Python-Dev] Re: PEP 554 comments

2020-04-20 Thread Greg Ewing
On 21/04/20 10:23 am, Eric Snow wrote: with the current spec channels get automatically closed sooner, effectively as soon as all wrapping objects *that were used* are garbage collected (or released). Maybe I'm missing something, but just because an object hasn't been used *yet* doesn't mean it

[Python-Dev] Re: PEP 554 for 3.9 or 3.10?

2020-04-20 Thread Eric Snow
Nathaniel, Your tone and approach to this conversation concern me. I appreciate that you have strong feelings here and readily recognize I have my own biases, but it's becoming increasingly hard to draw any constructive insight from what tend to be very longs posts from you. It ends up being a l

[Python-Dev] Re: PEP 554 for 3.9 or 3.10?

2020-04-20 Thread Nathaniel Smith
On Mon, Apr 20, 2020 at 5:36 PM Edwin Zimmerman wrote: > > On 4/20/2020 7:33 PM, Nathaniel Smith wrote: > > On Mon, Apr 20, 2020 at 4:26 PM Edwin Zimmerman > > wrote: > >> On 4/20/2020 6:30 PM, Nathaniel Smith wrote: > >>> We already have robust support for threads for low-isolation and > >>> su

[Python-Dev] Re: PEP 554 for 3.9 or 3.10?

2020-04-20 Thread Edwin Zimmerman
On 4/20/2020 7:33 PM, Nathaniel Smith wrote: > On Mon, Apr 20, 2020 at 4:26 PM Edwin Zimmerman > wrote: >> On 4/20/2020 6:30 PM, Nathaniel Smith wrote: >>> We already have robust support for threads for low-isolation and >>> subprocesses for high-isolation. Can you name some use cases where >>> n

[Python-Dev] Re: PEP 554 for 3.9 or 3.10?

2020-04-20 Thread Edwin Zimmerman
On 4/20/2020 6:30 PM, Nathaniel Smith wrote: > We already have robust support for threads for low-isolation and > subprocesses for high-isolation. Can you name some use cases where > neither of these are appropriate and you instead want an in-between > isolation – like subprocesses, but more fragil

[Python-Dev] Re: PEP 554 for 3.9 or 3.10?

2020-04-20 Thread Nathaniel Smith
On Mon, Apr 20, 2020 at 4:26 PM Edwin Zimmerman wrote: > > On 4/20/2020 6:30 PM, Nathaniel Smith wrote: > > We already have robust support for threads for low-isolation and > > subprocesses for high-isolation. Can you name some use cases where > > neither of these are appropriate and you instead w

[Python-Dev] Re: Accepting PEP 617: New PEG parser for CPython

2020-04-20 Thread Raymond Hettinger
This will be a nice improvement. Raymond ___ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le...@python.org https://mail.python.org/mailman3/lists/python-dev.python.org/ Message archived at https://mail.pyt

[Python-Dev] Re: PEP 616 "String methods to remove prefixes and suffixes" accepted

2020-04-20 Thread Raymond Hettinger
Please consider adding underscores to the names: remove_prefix() and remove_suffix(). The latter method causes a mental hiccup when first read as removes-uffix, forcing mental backtracking to get to remove-suffix. We had a similar problem with addinfourl initially being read as add-in-four-l b

[Python-Dev] Re: PEP 554 comments

2020-04-20 Thread Eric Snow
On Mon, Apr 20, 2020 at 4:23 PM Eric Snow wrote: > As I've gone to update the PEP for this I'm feeling less comfortable > with changing it. Also, the resulting text of the PEP makes it a little harder to follow when an interpreter gets associated. However, this is partly an artifact of the struc

[Python-Dev] Re: PEP 554 for 3.9 or 3.10?

2020-04-20 Thread Nathaniel Smith
On Fri, Apr 17, 2020 at 3:57 PM Eric Snow wrote: > > On Fri, Apr 17, 2020 at 2:59 PM Nathaniel Smith wrote: > > I think some perspective might be useful here :-). > > > > The last time we merged a new concurrency model in the stdlib, it was > > asyncio. > > > > [snip] > > > > OTOH, AFAICT the ne

[Python-Dev] Re: PEP 554 comments

2020-04-20 Thread Eric Snow
On Mon, Apr 20, 2020 at 4:19 PM Greg Ewing wrote: > > On 21/04/20 8:29 am, Eric Snow wrote: > > * Would a low-level channel implementation based on callbacks or locks > > be better (simpler, faster, etc.) than one based on buffering? > > Depends on what you mean by "better". Callbacks are more > v

[Python-Dev] Re: PEP 554 comments

2020-04-20 Thread Eric Snow
On Mon, Apr 20, 2020 at 2:22 PM Eric Snow wrote: > On Sat, Apr 18, 2020 at 11:16 AM Antoine Pitrou wrote: > > * The "association" timing seems quirky and potentially annoying: an > > interpreter only becomes associated with a channel the first time it > > calls recv() or send(). How about, i

[Python-Dev] Re: PEP 554 comments

2020-04-20 Thread Greg Ewing
On 21/04/20 8:29 am, Eric Snow wrote: * Would a low-level channel implementation based on callbacks or locks be better (simpler, faster, etc.) than one based on buffering? Depends on what you mean by "better". Callbacks are more versatile; a buffered channel just does buffering, but with callba

[Python-Dev] Re: Accepted PEP 615: Support for the IANA Time Zone Database in the Standard Library

2020-04-20 Thread Victor Stinner
Congrats Paul! This one wasn't easy! When Paul got promoted, I asked him if he could write a PEP about the local timezone. Well, here we are ;-) Paul: can I now also get nanosecond resolution? :-D https://bugs.python.org/issue15443 Oh, and leap seconds? https://bugs.python.org/issue23574 I comm

[Python-Dev] Re: Accepted PEP 615: Support for the IANA Time Zone Database in the Standard Library

2020-04-20 Thread Guido van Rossum
Congrats Paul! I am very happy that we'll get tz support built into the stdlib. On Mon, Apr 20, 2020 at 1:33 PM Barry Warsaw wrote: > The Python Steering Council accepts PEP 615 - Support for the IANA Time > Zone Database in the Standard Library: > > https://www.python.org/dev/peps/pep-0615/ >

[Python-Dev] Re: PEP 554 comments

2020-04-20 Thread Antoine Pitrou
On Mon, 20 Apr 2020 14:22:03 -0600 Eric Snow wrote: > > > The appeal of the PEP for experimentations is multiple: > > 1) ability to concurrently run independent execution environments > >without spawning child processes (which on some platforms and in some > >situations may not be very de

[Python-Dev] Re: PEP 616 "String methods to remove prefixes and suffixes" accepted

2020-04-20 Thread Guido van Rossum
Congrats Dennis! I hope your PR lands soon. On Mon, Apr 20, 2020 at 12:40 PM Eric V. Smith wrote: > Congratulations, Dennis! > > Not 10 minutes ago I was writing code that could have used this > functionality. And I got it wrong on my first attempt! I'm looking > forward to it in 3.9. > > Eric >

[Python-Dev] Re: PEP 554 comments

2020-04-20 Thread Eric Snow
On Sat, Apr 18, 2020 at 6:50 PM Greg Ewing wrote: > On 19/04/20 5:02 am, Antoine Pitrou wrote: > > * How hard would it be, in the current implementation, to add buffering > >to channels? > > > > * In the same vein, I think channels should allow adding readiness > >callbacks > > Of these, I

[Python-Dev] Accepted PEP 615: Support for the IANA Time Zone Database in the Standard Library

2020-04-20 Thread Barry Warsaw
The Python Steering Council accepts PEP 615 - Support for the IANA Time Zone Database in the Standard Library: https://www.python.org/dev/peps/pep-0615/ Congratulations Paul Ganssle! This is a fantastic, well written PEP, and we appreciate Paul’s engagement with the SC to clear up our last qu

[Python-Dev] Re: PEP 554 comments

2020-04-20 Thread Eric Snow
Thanks for the feedback, Antoine. I've responded inline below and will be making appropriate changes to the PEP. One point I'd like to reinforce before my comments is the PEP's emphasis on minimalism. >From PEP 554: This proposal is focused on enabling the fundamental capability of mult

[Python-Dev] Re: PEP 554 comments

2020-04-20 Thread Eric Snow
On Sat, Apr 18, 2020 at 11:16 AM Antoine Pitrou wrote: > * I do think a minimal synchronization primitive would be nice. > Either a Lock (in the Python sense) or a Semaphore: both should be > relatively easy to provide, by wrapping an OS-level synchronization > primitive. Then you can recre

[Python-Dev] Re: PEP 616 "String methods to remove prefixes and suffixes" accepted

2020-04-20 Thread Eric V. Smith
Congratulations, Dennis! Not 10 minutes ago I was writing code that could have used this functionality. And I got it wrong on my first attempt! I'm looking forward to it in 3.9. Eric On 4/20/2020 2:26 PM, Victor Stinner wrote: Hi, The Python Steering Council accepts the PEP 616 "String met

[Python-Dev] Re: Accepting PEP 617: New PEG parser for CPython

2020-04-20 Thread Batuhan Taskaya
Congratulations! On Mon, Apr 20, 2020, 9:30 PM Brett Cannon wrote: > The steering council is happy to announce that we have accepted PEP 617! > Thanks to the PEP authors for all their hard work (which includes sending a > PR to update the acceptance of the PEP 😉). >

[Python-Dev] PEP 616 "String methods to remove prefixes and suffixes" accepted

2020-04-20 Thread Victor Stinner
Hi, The Python Steering Council accepts the PEP 616 "String methods to remove prefixes and suffixes": https://www.python.org/dev/peps/pep-0616/ Congrats Dennis Sweeney! We just have one last request: we expect the documentation to explain well the difference between removeprefix()/removesuffix()

[Python-Dev] Accepting PEP 617: New PEG parser for CPython

2020-04-20 Thread Brett Cannon
The steering council is happy to announce that we have accepted PEP 617! Thanks to the PEP authors for all their hard work (which includes sending a PR to update the acceptance of the PEP 😉). ___ Python-Dev mailing list -- python-dev@python.org To unsu

[Python-Dev] Re: [RELEASE] Python 2.7.18, the end of an era

2020-04-20 Thread Guido van Rossum
And thank you, Benjamin! Where's the virtual party? --Guido On Mon, Apr 20, 2020 at 08:09 Benjamin Peterson wrote: > I'm eudaemonic to announce the immediate availability of Python 2.7.18. > > Python 2.7.18 is a special release. I refer, of course, to the fact that > "2.7.18" is the closest an

[Python-Dev] [RELEASE] Python 2.7.18, the end of an era

2020-04-20 Thread Benjamin Peterson
I'm eudaemonic to announce the immediate availability of Python 2.7.18. Python 2.7.18 is a special release. I refer, of course, to the fact that "2.7.18" is the closest any Python version number will ever approximate e, Euler's number. Simply exquisite! A less transcendent property of Python 2.

[Python-Dev] Re: Further PEP 615 Discussion: Equality and hash of ZoneInfo

2020-04-20 Thread Paul Ganssle
> In every use-case that I've ever had, and every one that I can > imagine, I've not cared about the difference between "US/Eastern" and > "America/New_York". In fact, if ZoneInfo("US/Eastern") returned > something that had a name of "America/New_York", I would be fine with > that. Similarly, Austr

[Python-Dev] Re: Further PEP 615 Discussion: Equality and hash of ZoneInfo

2020-04-20 Thread Paul Ganssle
> In every use-case that I've ever had, and every one that I can > imagine, I've not cared about the difference between "US/Eastern" and > "America/New_York". In fact, if ZoneInfo("US/Eastern") returned > something that had a name of "America/New_York", I would be fine with > that. Similarly, Austr