Re: [Python-ideas] PEP 540: Add a new UTF-8 mode

2017-01-10 Thread INADA Naoki
> > That kind of thing makes me very nervous, and I think justifiably so. > And it's only *sufficient* to justify a change to Python's defaults if > Python checks for and accurately identifies when it's in a container. > In my company, we use network boot servers. To reduce boot image, the image

Re: [Python-ideas] PEP 540: Add a new UTF-8 mode

2017-01-10 Thread Stephen J. Turnbull
INADA Naoki writes: > When talking about general Docker image, using C locale is OK for > most cases. In other words, images using C locale is properly > configured. s/properly/compatibly/. "Proper" has strong connotations of "according to protocol". Configuring LC_CTYPE for ASCII

Re: [Python-ideas] PEP 540: Add a new UTF-8 mode

2017-01-10 Thread INADA Naoki
> > Of course. The question is not "should cb@noaa properly configure > docker?", it's "Can docker properly configure docker (soon enough)? > And if not, should we configure Python?" The third question depends > on whether fixing it for you breaks things for others. When talking about general

Re: [Python-ideas] How to respond to trolling

2017-01-10 Thread Pavol Lisy
On 1/11/17, Steven D'Aprano wrote: > On Tue, Jan 10, 2017 at 07:29:12AM -0800, Guido van Rossum wrote: >> Was it really necessary for all the usual folks on this list to engage >> with >> the "Python review" threads? I think a much more effective response would >> have been a

Re: [Python-ideas] PEP 540: Add a new UTF-8 mode

2017-01-10 Thread Chris Barker - NOAA Federal
>> How common is this problem? > > Last 2 or 3 years, I don't recall having be bitten by such issue. We just got bitten by this on our CI server. Granted, we could fix it by properly configuring docker, but it would have been nice if it " just worked" -CHB

Re: [Python-ideas] How to respond to trolling

2017-01-10 Thread Steven D'Aprano
On Tue, Jan 10, 2017 at 07:29:12AM -0800, Guido van Rossum wrote: > Was it really necessary for all the usual folks on this list to engage with > the "Python review" threads? I think a much more effective response would > have been a resounding silence. Giving a newcomer the Silent Treatment

Re: [Python-ideas] How to respond to trolling

2017-01-10 Thread Guido van Rossum
Whether the intent was to annoy or just to provoke, the effect was dozens of messages with people falling over each other trying to engage the OP, who clearly was ignorant of most language design issues and uninterested in learning, and threw some insults in for good measure. The respondents

Re: [Python-ideas] api suggestions for the cProfile module

2017-01-10 Thread Thane Brimhall
That is great news because I'd be happy to do the implementation myself if it only requires Python. (Sadly I'm not proficient in C.) I'll be coding over the next couple days preparing an example implementation, then I will open an issue on the bug tracker. /Thane On Tuesday, January 10, 2017

[Python-ideas] api suggestions for the cProfile module

2017-01-10 Thread Jelle Zijlstra
2017-01-10 8:57 GMT-08:00 Ethan Furman : > On 01/10/2017 08:36 AM, Thane Brimhall wrote: > > Does anyone have thoughts on this topic? I assume the silence is because >> this suggestion is too trivial to matter. >> > > Sometimes it's just a matter of timing. :) > > I use

Re: [Python-ideas] api suggestions for the cProfile module

2017-01-10 Thread Thane Brimhall
Thanks for getting back to me on this! Yes timing can be a big factor. :) Turns out this gave me opportunity to look a little further back in the archives and someone suggested a very similar API change in November, so maybe more people than just me would want a feature like this. Good call on

Re: [Python-ideas] api suggestions for the cProfile module

2017-01-10 Thread Gregory P. Smith
At a glance, all of these sound like good modernizing enhancements for cprofile. It just takes someone to contribute the work. :) On Tue, Jan 10, 2017, 8:57 AM Ethan Furman wrote: > On 01/10/2017 08:36 AM, Thane Brimhall wrote: > > > Does anyone have thoughts on this topic?

Re: [Python-ideas] api suggestions for the cProfile module

2017-01-10 Thread Ethan Furman
On 01/10/2017 08:36 AM, Thane Brimhall wrote: Does anyone have thoughts on this topic? I assume the silence is because this suggestion is too trivial to matter. Sometimes it's just a matter of timing. :) I use cProfile a lot, and would like to suggest three backwards-compatible

Re: [Python-ideas] api suggestions for the cProfile module

2017-01-10 Thread Thane Brimhall
I hate to be "that guy" but... bump! Does anyone have thoughts on this topic? I assume the silence is because this suggestion is too trivial to matter. /Thane On Tuesday, December 20, 2016 at 5:51:49 PM UTC-7, Thane Brimhall wrote: > > I use cProfile a lot, and would like to suggest three

Re: [Python-ideas] How to respond to trolling

2017-01-10 Thread Ned Batchelder
On 1/10/17 10:43 AM, Ivan Levkivskyi wrote: > On 10 January 2017 at 16:29, Guido van Rossum > wrote: > > I think a much more effective response would have been a > resounding silence. > > > I agree. > I don't like to use the term "trolling"

Re: [Python-ideas] Python Reviewed

2017-01-10 Thread Ryan Gonzalez
I just want to point ONE thing out: On Jan 9, 2017 11:18 PM, "Simon Lovell" wrote: * General comment: I posted this because Googling didn't give me a satisfactory answer to why Python is the way that it is. I think I see it now. Guido hates keywords. I don't find this

Re: [Python-ideas] Python Reviewed

2017-01-10 Thread Rob Cliffe
On 10/01/2017 05:18, Simon Lovell wrote: Hi Kyle, I don't see the harm caused from having a do-while construct. Not the most used construct but it is sometimes useful and not having it means you need to either have a first time through marker or a break at the end of a "while True:" loop.

Re: [Python-ideas] Python reviewed

2017-01-10 Thread Steven D'Aprano
On Tue, Jan 10, 2017 at 09:44:31AM +0800, Simon Lovell wrote: > Also in Python you can use: > > for x in range (1,j+1): > > to loop j times. Although it does read as though it is looping j+1 times > to those not familiar. *shrug* To those "not familiar", most language features are mysterious