Re: PEP 594 cgi & cgitb removal

2019-05-24 Thread Michael Torrie
On 05/24/2019 04:27 AM, Jon Ribbens via Python-list wrote: > On 2019-05-23, Gunnar Þór Magnússon wrote: >>> nginx is the current hotness. CGI has not been hotness since the >>> mid 90s. >> >> Serverless is the new hotness, and serverless is CGI. Technology is >> cyclical. > > Sorry, in what sense

Re: PEP 594 cgi & cgitb removal

2019-05-24 Thread Michael Torrie
On 05/24/2019 01:24 PM, Marko Rauhamaa wrote: > There's a programming language arms race. Python wants to beat Java, C# > and go in the everything-for-everybody game. Python developers seem to > take the popularity of the language as proof of success. Pride goes > before the fall. I don't see this

Re: More CPUs doen't equal more speed

2019-05-24 Thread Cameron Simpson
On 24May2019 11:40, bvdp wrote: Just got a 1 liner working with parallel. Super! All I ended up doing is: parallel mma {} ::: *mma +1 Glad to see a nice simple approach. Cheers, Cameron Simpson (formerly ) -- https://mail.python.org/mailman/listinfo/python-list

Re: PEP 594 cgi & cgitb removal

2019-05-24 Thread Terry Reedy
I am responding to Paul indirectly because his post did not show up on the gmane mirror. Paul Rubin : It also makes me ask why the Python team keeps adding new stuff if it can't even keep the old stuff running. Because the new stuff is expected to be more useful to more people than some o

Re: PEP 594 cgi & cgitb removal

2019-05-24 Thread Marko Rauhamaa
Paul Rubin : > Stéphane Wirtel writes: >> Not a massive effort, but we are limited with the resources. > > I keep hearing that but it makes it sound like Python itself is in > decline. That is despite the reports that it is now the most popular > language in the world. It also makes me ask why the

Re: More CPUs doen't equal more speed

2019-05-24 Thread Bob van der Poel
Just got a 1 liner working with parallel. Super! All I ended up doing is: parallel mma {} ::: *mma which whizzed through my files in less than 1/4 of the time of my one-at-a-time script. (In case anyone is wondering, or cares, this is a bunch of Musical Midi Accompaniment files: https://mello

Re: More CPUs doen't equal more speed

2019-05-24 Thread Rob Gaddi
On 5/23/19 6:32 PM, Cameron Simpson wrote: On 23May2019 17:04, bvdp wrote: Anyway, yes the problem is that I was naively using command.getoutput() which blocks until the command is finished. So, of course, only one process was being run at one time! Bad me! I guess I should be looking at sub

Re: More CPUs doen't equal more speed

2019-05-24 Thread Bob van der Poel
Ahh, 2 really excellent ideas! I'm reading about parallel right now. And, I know how to use make, so I really should have thought of -j as well. Thanks for the ideas. On Fri, May 24, 2019 at 12:02 AM Christian Gollwitzer wrote: > Am 23.05.19 um 23:44 schrieb Paul Rubin: > > Bob van der Poel wri

Re: Checking network input processing by Python for a multi-threaded server

2019-05-24 Thread Markus Elfring
> The file name for the client script is passed by a parameter to a command > which is repeated by this server in a loop. > It is evaluated then how often a known record set count was sent. In which time ranges would you expect the receiving of the complete JSON data which were sent by the child p

Re: Handling an connection error with Twython

2019-05-24 Thread MRAB
On 2019-05-24 09:25, Cecil Westerhof wrote: Dennis Lee Bieber writes: On Fri, 24 May 2019 07:49:23 +0200, Cecil Westerhof declaimed the following: I did not do that consciously, because I have to try until it is successful an I return, or I reached the max tries and re-raise the exception.

Re: PEP 594 cgi & cgitb removal

2019-05-24 Thread D'Arcy Cain
On 2019-05-22 03:51, Robin Becker wrote: > In PEP 594 t has been proposed that cgi & cgitb should be removed. I > suspect I am not the only person in the world that likes using cgi and > cgitb. I use both heavily. Just another data point. I wasn't going to respond with a "Me too" except that I s

Re: PEP 594 cgi & cgitb removal

2019-05-24 Thread Stéphane Wirtel
On 05/23, Rhodri James wrote: On 22/05/2019 19:29, Terry Reedy wrote: One of the factors being considered in removal decisions is the absence of anyone willing to list themselves in the expert's list https://devguide.python.org/experts/ as a maintainer for a module. At the moment, 3 other peop

Re: PEP 594 cgi & cgitb removal

2019-05-24 Thread Jon Ribbens via Python-list
On 2019-05-23, Gunnar Þór Magnússon wrote: >> nginx is the current hotness. CGI has not been hotness since the >> mid 90s. > > Serverless is the new hotness, and serverless is CGI. Technology is > cyclical. Sorry, in what sense do you mean "Serverless is CGI"? As far as I can tell, it's just a s

Re: Handling an connection error with Twython

2019-05-24 Thread Cecil Westerhof
Dennis Lee Bieber writes: > On Fri, 24 May 2019 07:49:23 +0200, Cecil Westerhof > declaimed the following: > >> >>I did not do that consciously, because I have to try until it is >>successful an I return, or I reached the max tries and re-raise the >>exception. With a for loop I could exit the l

EuroPython 2019: Financial Aid Program starts today

2019-05-24 Thread M.-A. Lemburg
We are happy to announce the start of our financial aid program for this year’s EuroPython. As part of our commitment to the Python community, we are pleased to announce that we offer special grants for people in need of a financial aid to attend EuroPython. * https://ep2019.europython.eu/r

Re: More CPUs doen't equal more speed

2019-05-24 Thread Christian Gollwitzer
Am 23.05.19 um 23:44 schrieb Paul Rubin: Bob van der Poel writes: for i in range(0, len(filelist), CPU_COUNT): for z in range(i, i+CPU_COUNT): doit( filelist[z]) Write your program to just process one file, then use GNU Parallel to run the program on your 1200 files, 6 at a time