Re: HTTP server benchmarking/load testing in Python

2023-01-26 Thread Thomas Passin
On 1/26/2023 6:39 PM, Barry wrote: On 26 Jan 2023, at 17:32, Thomas Passin wrote: On 1/26/2023 11:41 AM, Chris Angelico wrote: On Fri, 27 Jan 2023 at 03:34, Thomas Passin wrote: A nice theory but nothing to do with the real world. I've had a number of laptops that overheat (or would, if

Re: HTTP server benchmarking/load testing in Python

2023-01-26 Thread Thomas Passin
On 1/26/2023 10:32 PM, Chris Angelico wrote: On Fri, 27 Jan 2023 at 14:21, Thomas Passin wrote: 2. "What is Tjunction max temperature?" Tjunction max is the maximum thermal junction temperature that a processor will allow prior to using internal thermal control mechanisms to reduce power and

Re: HTTP server benchmarking/load testing in Python

2023-01-26 Thread Chris Angelico
On Fri, 27 Jan 2023 at 14:21, Thomas Passin wrote: > 2. "What is Tjunction max temperature?" > Tjunction max is the maximum thermal junction temperature that a > processor will allow prior to using internal thermal control mechanisms > to reduce power and limit temperature. Activation of the

Re: HTTP server benchmarking/load testing in Python

2023-01-26 Thread Thomas Passin
On 1/26/2023 5:00 PM, Chris Angelico wrote: On Fri, 27 Jan 2023 at 06:54, Thomas Passin wrote: Did you get a warning, or did you just decide to stop the test? (At least) one of the utilities, I forget which one, did show the temperature in a danger zone. I'm very curious as to which

RE: RE: bool and int

2023-01-26 Thread avi.e.gross
[Dino has a deliberately invalid email address so sending him anything privately is not an option.] Dino, I would agree with you that for some purposes, you do NOT need to dig deep into a language to get fairly routine things done. You can often borrow ideas and code from an online search and

Re: HTTP server benchmarking/load testing in Python

2023-01-26 Thread Barry
> On 26 Jan 2023, at 17:32, Thomas Passin wrote: > > On 1/26/2023 11:41 AM, Chris Angelico wrote: >>> On Fri, 27 Jan 2023 at 03:34, Thomas Passin wrote: >>> A nice theory but nothing to do with the real world. I've had a number >>> of laptops that overheat (or would, if I let test program

Re: Module use of python3_d.dll conflicts with this version of Python

2023-01-26 Thread Eryk Sun
On 1/26/23, Olivier B. wrote: > > Does someone know why it would have been chosen to be different for > debug builds? It's assumed that a debug build would normally link with "pythonXY_d.dll". Maybe it should be more defensive. Refer to the following setup in PC/pyconfig.h: /* For an MSVC

Re: Python not found

2023-01-26 Thread Eryk Sun
On 1/26/23, Bela Gesztesi wrote: > > C:\DJI>py comm_og_service_tool.py WM231 --port COM3 GimbalCalib JointCoarse > > Python was not found; run without arguments to install from the Microsoft > Store, or disable this shortcut from Settings > Manage App Execution > Aliases. Do what it's telling

Python not found

2023-01-26 Thread Bela Gesztesi
I have downloaded python, checking path installation and I receive the following: C:\DJI>py comm_og_service_tool.py WM231 --port COM3 GimbalCalib JointCoarse Python was not found; run without arguments to install from the Microsoft Store, or disable this shortcut from Settings > Manage App

Re: bool and int

2023-01-26 Thread Chris Angelico
On Fri, 27 Jan 2023 at 06:32, Dino wrote: > > On 1/25/2023 5:42 PM, Chris Angelico wrote: > > > > > Try this (or its equivalent) in as many languages as possible: > > > > x = (1 > 2) > > x == 0 > > > > You'll find that x (which has effectively been set to False, or its > > equivalent in any

Re: HTTP server benchmarking/load testing in Python

2023-01-26 Thread Chris Angelico
On Fri, 27 Jan 2023 at 06:54, Thomas Passin wrote: > > Did you get a warning, or did you just decide to stop the test? > > (At least) one of the utilities, I forget which one, did show the > temperature in a danger zone. I'm very curious as to which utility, and on what basis it called it

Re: bool and int

2023-01-26 Thread Ben Bacarisse
Chris Angelico writes: > On Thu, 26 Jan 2023 at 08:19, Dino wrote: >> >> On 1/23/2023 11:22 PM, Dino wrote: >> > >>> b = True >> > >>> isinstance(b,bool) >> > True >> > >>> isinstance(b,int) >> > True >> > >>> >> >> ok, I read everything you guys wrote. Everyone's got their reasons >>

Re: bool and int

2023-01-26 Thread 2QdxY4RzWzUUiLuE
On 2023-01-26 at 12:12:30 -0500, Dino wrote: > On 1/25/2023 5:42 PM, Chris Angelico wrote: > > > > > Try this (or its equivalent) in as many languages as possible: > > > > x = (1 > 2) > > x == 0 > > > > You'll find that x (which has effectively been set to False, or its > > equivalent in any

Re: HTTP server benchmarking/load testing in Python

2023-01-26 Thread Thomas Passin
On 1/26/2023 12:57 PM, Chris Angelico wrote: On Fri, 27 Jan 2023 at 04:31, Thomas Passin wrote: On 1/26/2023 11:41 AM, Chris Angelico wrote: On Fri, 27 Jan 2023 at 03:34, Thomas Passin wrote: A nice theory but nothing to do with the real world. I've had a number of laptops that overheat

Re: HTTP server benchmarking/load testing in Python

2023-01-26 Thread Chris Angelico
On Fri, 27 Jan 2023 at 04:31, Thomas Passin wrote: > > On 1/26/2023 11:41 AM, Chris Angelico wrote: > > On Fri, 27 Jan 2023 at 03:34, Thomas Passin wrote: > >> A nice theory but nothing to do with the real world. I've had a number > >> of laptops that overheat (or would, if I let test program

Re: bool and int

2023-01-26 Thread Dino
On 1/25/2023 5:42 PM, Chris Angelico wrote: Try this (or its equivalent) in as many languages as possible: x = (1 > 2) x == 0 You'll find that x (which has effectively been set to False, or its equivalent in any language) will be equal to zero in a very large number of languages. Thus, to an

Re: HTTP server benchmarking/load testing in Python

2023-01-26 Thread Thomas Passin
On 1/26/2023 11:41 AM, Chris Angelico wrote: On Fri, 27 Jan 2023 at 03:34, Thomas Passin wrote: A nice theory but nothing to do with the real world. I've had a number of laptops that overheat (or would, if I let test program continue) running this test program. Define "overheat". If all

Re: asyncio questions

2023-01-26 Thread Dieter Maurer
Frank Millman wrote at 2023-1-26 12:12 +0200: >I have written a simple HTTP server using asyncio. It works, but I don't >always understand how it works, so I was pleased that Python 3.11 >introduced some new high-level concepts that hide the gory details. I >want to refactor my code to use these

Re: HTTP server benchmarking/load testing in Python

2023-01-26 Thread Grant Edwards
On 2023-01-26, Thomas Passin wrote: > On 1/26/2023 11:02 AM, Grant Edwards wrote: > >[...] > >> A properly designed laptop with a non-broken OS will not overheat >> regardless of the computing load you throw at it. The fan might get >> annoying loud, but if it overheats either your hardware or OS

Re: HTTP server benchmarking/load testing in Python

2023-01-26 Thread Chris Angelico
On Fri, 27 Jan 2023 at 03:34, Thomas Passin wrote: > A nice theory but nothing to do with the real world. I've had a number > of laptops that overheat (or would, if I let test program continue) > running this test program. Define "overheat". If all you're saying is "the fan began to whine and I

Re: bool and int

2023-01-26 Thread Chris Angelico
On Fri, 27 Jan 2023 at 03:31, rbowman wrote: > > On Thu, 26 Jan 2023 04:10:30 +1100, Chris Angelico wrote: > > > > BASIC was like that too, although it (at least, the versions I used in > > my childhood) didn't have "True" and "False", you just got the actual > > values -1 and 0. They were the

Re: RE: bool and int

2023-01-26 Thread Dino
Wow. That was quite a message and an interesting read. Tempted to go deep and say what I agree and what I disagree with, but there are two issues: 1) time 2) I will soon be at a disadvantage discussing with people (you or others) who know more than me (which doesn't make them right

Re: HTTP server benchmarking/load testing in Python

2023-01-26 Thread Thomas Passin
On 1/26/2023 11:02 AM, Grant Edwards wrote: On 2023-01-26, Thomas Passin wrote: On 1/25/2023 7:38 PM, Peter J. Holzer wrote: On 2023-01-25 16:30:56 -0500, Thomas Passin wrote: Great! Don't forget what I said about potential overheating if you hit the server with as many requests as it can

Re: HTTP server benchmarking/load testing in Python

2023-01-26 Thread Dino
On 1/25/2023 4:30 PM, Thomas Passin wrote: On 1/25/2023 3:29 PM, Dino wrote: Great!  Don't forget what I said about potential overheating if you hit the server with as many requests as it can handle. Noted. Thank you. -- https://mail.python.org/mailman/listinfo/python-list

Re: bool and int

2023-01-26 Thread rbowman
On Thu, 26 Jan 2023 04:10:30 +1100, Chris Angelico wrote: > BASIC was like that too, although it (at least, the versions I used in > my childhood) didn't have "True" and "False", you just got the actual > values -1 and 0. They were the other way around compared to what you're > saying here

Module use of python3_d.dll conflicts with this version of Python

2023-01-26 Thread Olivier B.
Hi,I am in the process of trying to make my code (an c++ executable and swig modules using the Python C API) lose the dependency to python 3.7, to be compatible with all Python 3.2+ I tried linking to python.lib instead of python37.lib. As i am still using a few things that are not in the limited

Re: HTTP server benchmarking/load testing in Python

2023-01-26 Thread Benjamin Schollnick
> On Jan 26, 2023, at 11:02 AM, Grant Edwards wrote: > > On 2023-01-26, Thomas Passin wrote: >> On 1/25/2023 7:38 PM, Peter J. Holzer wrote: >>> On 2023-01-25 16:30:56 -0500, Thomas Passin wrote: Great! Don't forget what I said about potential overheating if you hit the server with

Re: asyncio questions

2023-01-26 Thread Grant Edwards
On 2023-01-26, Frank Millman wrote: > I have written a simple HTTP server using asyncio. It works, but I don't > always understand how it works, I thought that was the rule with asyncio. ;) -- https://mail.python.org/mailman/listinfo/python-list

Re: HTTP server benchmarking/load testing in Python

2023-01-26 Thread Grant Edwards
On 2023-01-26, Thomas Passin wrote: > On 1/25/2023 7:38 PM, Peter J. Holzer wrote: >> On 2023-01-25 16:30:56 -0500, Thomas Passin wrote: >>> Great! Don't forget what I said about potential overheating if you >>> hit the server with as many requests as it can handle. >> >> Frankly, if you can

Re: How to make argparse accept "-4^2+5.3*abs(-2-1)/2" string argument?

2023-01-26 Thread Mats Wichmann
On 1/24/23 23:28, Jach Feng wrote: Chris Angelico 在 2023年1月25日 星期三下午1:16:25 [UTC+8] 的信中寫道: On Wed, 25 Jan 2023 at 14:42, Jach Feng wrote: I was happy working with argparse during implement my script. To save the typing, I used a default equation for testing. sample = "-4^2+5.3*abs(-2-1)/2,

RE: bool and int

2023-01-26 Thread avi.e.gross
Gerard, I am sure there is. I have been on many forums that discuss programming languages and since nothing is perfect and people differ in many ways, there is always grumbling and comparison. If we all agreed and there was only one of something, I suspect we still would complain and that is

Re: HTTP server benchmarking/load testing in Python

2023-01-26 Thread Thomas Passin
On 1/25/2023 11:23 PM, Dino wrote: On 1/25/2023 3:27 PM, Dino wrote: On 1/25/2023 1:33 PM, orzodk wrote: I have used locust with success in the past. https://locust.io First impression, exactly what I need. Thank you Orzo! the more I learn about Locust and I tinker with it, the more I

Re: bool and int

2023-01-26 Thread Chris Angelico
On Thu, 26 Jan 2023 at 21:53, Weatherby,Gerard wrote: > > I can’t help but wonder if there exists some Java forum /mailing list going > on about how horrible Python is. Try https://www.reddit.com/r/ProgrammerHumor/ for plenty of people whining about how horrible Python is. But along the way,

Flamebait (was: Re: bool and int)

2023-01-26 Thread 2QdxY4RzWzUUiLuE
On 2023-01-26 at 10:52:06 +, "Weatherby,Gerard" wrote: > I can’t help but wonder if there exists some Java forum /mailing list > going on about how horrible Python is. Not some of them. *All* of them. Here's the summary: - Dynamic Typing causes defects and makes non-toy software

Re: bool and int

2023-01-26 Thread Weatherby,Gerard
I can’t help but wonder if there exists some Java forum /mailing list going on about how horrible Python is. From: Python-list on behalf of rbowman Date: Wednesday, January 25, 2023 at 12:25 PM To: python-list@python.org Subject: Re: bool and int *** Attention: This is an external email. Use

asyncio questions

2023-01-26 Thread Frank Millman
Hi all I have written a simple HTTP server using asyncio. It works, but I don't always understand how it works, so I was pleased that Python 3.11 introduced some new high-level concepts that hide the gory details. I want to refactor my code to use these concepts, but I am not finding it

Re: [Help Request] Embedding Python in a CPP Application Responsibly & Functionally

2023-01-26 Thread Dieter Maurer
John McCardle wrote at 2023-1-25 22:31 -0500: > ... >1) To get the compiled Python to run independently, I have to hack >LD_LIBRARY_PATH to get it to execute. `LD_LIBRARY_PATH=./Python-3.11.1 >./Python-3.11.1/python` . The need to set `LD_LIBRARY_PATH` usually can be avoided via a link time