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 i

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 expecting

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 Do

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

2017-01-10 Thread Stephen J. Turnbull
Chris Barker - NOAA Federal writes: > >> 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 " > ju

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

2017-01-10 Thread Stephen J. Turnbull
Steven D'Aprano writes: > Giving a newcomer the Silent Treatment because they've questioned some > undocumented set of features not open to change is not Open, Considerate > or Respectful (the CoC). Even if their ideas are ignorant or ill-thought > out, we must give them the benefit of the

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 resounding silence. >

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 becau

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

2017-01-10 Thread Ryan Birmingham
I think that replying with an almost canned response, like the one Ned proposed ("unless you are seriously proposing a change to the language, this is not the right list."), would help discourage other list members from responding where responses aren't necessary. -Ryan Birmingham On 10 January 2

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

2017-01-10 Thread Terry Reedy
On 1/10/2017 11: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. 1 and 3 don't really need discussion here. 2 perhaps. I would open 3 separate enhancement issues. As near as I can tell, profile an

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 should

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

2017-01-10 Thread Nick Timkovich
If you're proposing throwing half of Python's current syntax in the bin, this isn't the right list either. If not marginally malicious, I think it's delusional to think a post to Language X's lists by someone who recommends multiple breaking changes would ever be accepted. The correct response (if

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 a

[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 cProfile a lot, and would

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? I assume the silence

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 improvemen

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 backw

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" except for people who a

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

2017-01-10 Thread Ivan Levkivskyi
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. -- Ivan ___ Python-ideas mailing list Python-ideas@python.org https://mail.python.org/mailman/listinfo/pyt

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 particularly logical but i

[Python-ideas] How to respond to trolling

2017-01-10 Thread Guido van Rossum
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. -- --Guido van Rossum (python.org/~guido) ___ Python-ideas mailing list

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 a