Why doesn't Python (error msg) tell me WHAT the actual (arg) values are ?

2023-02-22 Thread Hen Hanna
> py bug.py Traceback (most recent call last): File "C:\Usenet\bug.py", line 5, in print( a + 12 ) TypeError: can only concatenate str (not "int") to str Why doesn't Python (error msg) do the ob

Re: Creating logs with Python

2023-02-22 Thread Dave (NK7Z)
/howto/logging.html From: Python-list on behalf of Bibi Date: Wednesday, February 22, 2023 at 9:44 AM To: python-list@python.org Subject: Creating logs with Python *** Attention: This is an external email. Use caution responding, opening attachments or clicking on links. *** Hello I want

Re: Python + Vim editor

2023-02-22 Thread Thomas Passin
On 2/22/2023 1:45 PM, orzodk wrote: Thomas Passin writes: On 2/22/2023 12:00 AM, orzodk wrote: Thomas Passin writes: On 2/21/2023 9:00 PM, Hen Hanna wrote: what editor do you (all) use to write Python code? (i use Vim) I usually use the Leo-editor (https://github.com/leo-editor/leo

Re: Python + Vim editor

2023-02-22 Thread orzodk
Thomas Passin writes: > On 2/22/2023 12:00 AM, orzodk wrote: >> Thomas Passin writes: >> >>> On 2/21/2023 9:00 PM, Hen Hanna wrote: >>>> what editor do you (all) use to write Python code? (i use Vim) >>> >>> I usually use the Leo-editor

Re: Python + Vim editor

2023-02-22 Thread Tramiv
On 2023-02-22, Hen Hanna wrote: > > what editor do you (all) use to write Python code? (i use Vim) > For short editin I also use Vim and Pycharm IDE for bigger projects. -- https://mail.python.org/mailman/listinfo/python-list

Re: Creating logs with Python

2023-02-22 Thread Weatherby,Gerard
https://docs.python.org/3/howto/logging.html From: Python-list on behalf of Bibi Date: Wednesday, February 22, 2023 at 9:44 AM To: python-list@python.org Subject: Creating logs with Python *** Attention: This is an external email. Use caution responding, opening attachments or clicking

Creating logs with Python

2023-02-22 Thread Bibi
Hello I want to store and make available as part of my project, logs, for access to data. Do you have any proposals? Kind regards -- https://mail.python.org/mailman/listinfo/python-list

Re: Python + Vim editor

2023-02-21 Thread Thomas Passin
On 2/22/2023 12:00 AM, orzodk wrote: Thomas Passin writes: On 2/21/2023 9:00 PM, Hen Hanna wrote: what editor do you (all) use to write Python code? (i use Vim) I usually use the Leo-editor (https://github.com/leo-editor/leo-editor or PyPi). It's wonderful once you get it figured out

Re: Python + Vim editor

2023-02-21 Thread orzodk
Thomas Passin writes: > On 2/21/2023 9:00 PM, Hen Hanna wrote: >> what editor do you (all) use to write Python code? (i use Vim) > > I usually use the Leo-editor (https://github.com/leo-editor/leo-editor > or PyPi). It's wonderful once you get it figured out but it's got

Re: Python + Vim editor

2023-02-21 Thread Thomas Passin
On 2/21/2023 9:00 PM, Hen Hanna wrote: what editor do you (all) use to write Python code? (i use Vim) I usually use the Leo-editor (https://github.com/leo-editor/leo-editor or PyPi). It's wonderful once you get it figured out but it's got a real learning curve. -- https

Re: Python + Vim editor

2023-02-21 Thread rbowman
On Tue, 21 Feb 2023 18:00:20 -0800 (PST), Hen Hanna wrote: > what editor do you (all) use to write Python code? (i use Vim) I've used vim (gvim to be precise) for years and that has been my editor of choice for Python. Lately I've been using Spyder. As background, most of my Python w

Re: Python + Vim editor

2023-02-21 Thread Weatherby,Gerard
Vim 2% of the time, PyCharm (with VI plugin) 98% of the time. From: Python-list on behalf of Hen Hanna Date: Tuesday, February 21, 2023 at 9:38 PM To: python-list@python.org Subject: Python + Vim editor *** Attention: This is an external email. Use caution responding, opening attachments

Python + Vim editor

2023-02-21 Thread Hen Hanna
what editor do you (all) use to write Python code? (i use Vim) yesterday (?) i started noticing this with Bing search e.g. i type [synonymrich] whch gives several synonyms, and so (next) i try to replace [rich] by something like

[Python-announce] ANN: SciPy 1.10.1

2023-02-19 Thread Tyler Reddy
10.1 * `#17717 <https://github.com/scipy/scipy/pull/17717>`__: BUG: allow readonly input to interpolate.interpn * `#17721 <https://github.com/scipy/scipy/pull/17721>`__: MAINT: update \`meson-python\` upper bound to <0.13.0 * `#17726 <https://github.com/scipy/scipy/pull/17726>`__:

Re: [Python-Dev] Python 3.11.2, 3.10.10

2023-02-19 Thread Pablo Galindo Salgado
Apologies! It seems that I added python-comitters and python-announce but forgot to add python-dev. Here is the email to python-announce: [1]Mailman 3 [RELEASE] Python 3.11.2, Python 3.10.10 and 3.12.0 alpha 5 are available - [2]favicon.ico Python-announce

Python 3.11.2, 3.10.10

2023-02-17 Thread אורי
Hi, I was surprised that Python 3.11.2 and 3.10.10 have been released without a notice to this mailing list. What happened? Thanks, Uri. אורי u...@speedy.net On Wed, Dec 7, 2022 at 1:03 AM Łukasz Langa wrote: > Greetings! We bring you a slew of releases this fine Saint Nicho

Re: Python: How to use the 'trace' module programmatically?

2023-02-16 Thread Peter Slížik
Barry wrote: > > > On 15 Feb 2023, at 17:23, Peter Slížik wrote: > > Hello, > > I'm trying to analyze complex Python code. For some specific reasons, I > decided to use tracing instead of a debugger. > > The first thing I tried was: > > python -m trac

Re: Python: How to use the 'trace' module programmatically?

2023-02-16 Thread Barry
> On 15 Feb 2023, at 17:23, Peter Slížik wrote: > > Hello, > > I'm trying to analyze complex Python code. For some specific reasons, I > decided to use tracing instead of a debugger. > > The first thing I tried was: > > python -m trace -t /path/to/file.py &

Re: Python: How to use the 'trace' module programmatically?

2023-02-15 Thread Weatherby,Gerard
directory and subdirectories. The argument can be a list of directories separated by os.pathsep<https://docs.python.org/3/library/os.html#os.pathsep>.” From: Python-list on behalf of Peter Slížik Date: Wednesday, February 15, 2023 at 12:22 PM To: python-list@python.org Subject: Pytho

Python: How to use the 'trace' module programmatically?

2023-02-15 Thread Peter Slížik
Hello, I'm trying to analyze complex Python code. For some specific reasons, I decided to use tracing instead of a debugger. The first thing I tried was: python -m trace -t /path/to/file.py The output of this command turned out to be completely useless. The reason is that there was a thread

Python 3.8 pip installation on Windows 7

2023-02-14 Thread christoph sobotta via Python-list
Hello, The installation file Python-3.8.10.exe (last version compatible with Windows 7 (32 bit) ? ) does not automatically install pip on Windows 7. Are there compatibility problems with Windows 7 ? See attachment log file Greetings C.Sobotta ... MSI (s) (3C:FC) [13:32:28:993]: Hello, I'm your

l can't use pip in python 3.11.2

2023-02-13 Thread outlook_f8d50c5b9e059...@outlook.com
    从 Windows 版[1]邮件发送   References Visible links 1. https://go.microsoft.com/fwlink/?LinkId=550986 -- https://mail.python.org/mailman/listinfo/python-list

[Python-announce] [RELEASE] Python 3.11.2, Python 3.10.10 and 3.12.0 alpha 5 are available

2023-02-08 Thread Pablo Galindo Salgado
Hi everyone, I am happy to report that after solving some last-time problems we have a bunch of fresh releases for you: ### Python 3.12.0 alpha 5 Check the new alpha of 3.12 with some Star Trek vibes: https://www.python.org/downloads/release/python-3120a5/ 210 new commits since 3.12.0a4 last

Re: tree representation of Python data

2023-02-08 Thread Thomas Passin
On 2/8/2023 6:39 AM, Shaozhong SHI wrote: What is the robust way to use Python to read in an XML and turn it into a JSON file? JSON dictionary is actually a tree.  It is much easier to manage the tree-structured data. XML and JSON are both for interchanging data. What are you trying

Re: tree representation of Python data

2023-02-08 Thread Shaozhong SHI
What is the robust way to use Python to read in an XML and turn it into a JSON file? JSON dictionary is actually a tree. It is much easier to manage the tree-structured data. Regards, David -- https://mail.python.org/mailman/listinfo/python-list

[Python-announce] PyCA cryptography 39.0.1 released

2023-02-07 Thread Paul Kehrer
PyCA cryptography 39.0.1 has been released to PyPI. cryptography includes both high level recipes and low level interfaces to common cryptographic algorithms such as symmetric ciphers, asymmetric algorithms, message digests, X509, key derivation functions, and much more. We support Python 3.6

[Python-announce] ANN: pvlib-0.9.4 released

2023-02-05 Thread Dr. Mark Alexander Mikofski PhD
Dear Pythonistas and solar power enthusiasts, The maintainers are happy to announce a new release of pvlib python: software for simulating performance of photovoltaic solar energy systems. *See what's new for v0.9.4:* ** *https://pvlib-python.readthedocs.io/en/stable/whatsnew.html *Releases

[Python-announce] NumPy 1.24. 2 Release

2023-02-05 Thread Charles R Harris
Hi All, On behalf of the NumPy team, I'm pleased to announce the release of NumPy 1.24.2. NumPy 1.24.2 is a maintenance release that fixes bugs and regressions discovered after the 1.24.1 release. The Python versions supported by this release are 3.8-3.11 Note that 32 bit wheels are only

Re: Upgrading Python on Ubuntu 22.04.1 LTS

2023-02-02 Thread Thomas Passin
On 2/2/2023 1:56 PM, אורי wrote: deadsnakes ppa don't have Python 3.10 for Ubuntu 22.04. https://launchpad.net/~deadsnakes/+archive/ubuntu/ppa <https://launchpad.net/~deadsnakes/+archive/ubuntu/ppa> אורי u...@speedy.net <mailto:u...@speedy.net> I just last night installed 3.10

Re: Upgrading Python on Ubuntu 22.04.1 LTS

2023-02-02 Thread אורי
deadsnakes ppa don't have Python 3.10 for Ubuntu 22.04. https://launchpad.net/~deadsnakes/+archive/ubuntu/ppa אורי u...@speedy.net On Wed, Feb 1, 2023 at 8:14 PM Thomas Passin wrote: > On 2/1/2023 12:36 PM, אורי wrote: > > Thank you all. > > > > I'm not familiar with

[Python-announce] [Python announce] unexpected-isaves 1.5.0 released!

2023-02-01 Thread Eric Mendes
-isaves/ ___ Python-announce-list mailing list -- python-announce-list@python.org To unsubscribe send an email to python-announce-list-le...@python.org https://mail.python.org/mailman3/lists/python-announce-list.python.org/ Member address: arch...@mail

Re: Upgrading Python on Ubuntu 22.04.1 LTS

2023-02-01 Thread Thomas Passin
eb 1, 2023 at 7:33 PM Jack Dangler wrote: Ari Have you tried running a snap update? Regards יַעֲקֹב On 2/1/23 11:31, אורי wrote: Hi, I have a server with Ubuntu 22.04.1 LTS and the Python version there is Python 3.10.6. Is there a safe way to upgrade to the latest version of Python 3.10 (3.

Re: Upgrading Python on Ubuntu 22.04.1 LTS

2023-02-01 Thread Jack Dangler
ards יַעֲקֹב On 2/1/23 11:31, אורי wrote: Hi, I have a server with Ubuntu 22.04.1 LTS and the Python version there is Python 3.10.6. Is there a safe way to upgrade to the latest version of Python 3.10 (3.10.9)? I tried with the OS update and upgrade but the Python version remained the same. Th

Re: Upgrading Python on Ubuntu 22.04.1 LTS

2023-02-01 Thread Thomas Passin
/ppa More than likely it will have your package. See https://github.com/deadsnakes On Wed, Feb 1, 2023 at 7:33 PM Jack Dangler wrote: Ari Have you tried running a snap update? Regards יַעֲקֹב On 2/1/23 11:31, אורי wrote: Hi, I have a server with Ubuntu 22.04.1 LTS and the Python ver

Re: Upgrading Python on Ubuntu 22.04.1 LTS

2023-02-01 Thread אורי
יַעֲקֹב > > On 2/1/23 11:31, אורי wrote: > > Hi, > > > > I have a server with Ubuntu 22.04.1 LTS and the Python version there > > is Python 3.10.6. Is there a safe way to upgrade to the latest version of > > Python 3.10 (3.10.9)? I tried with the OS upda

Re: Upgrading Python on Ubuntu 22.04.1 LTS

2023-02-01 Thread Jack Dangler
Ari Have you tried running a snap update? Regards יַעֲקֹב On 2/1/23 11:31, אורי wrote: Hi, I have a server with Ubuntu 22.04.1 LTS and the Python version there is Python 3.10.6. Is there a safe way to upgrade to the latest version of Python 3.10 (3.10.9)? I tried with the OS update

Re: Upgrading Python on Ubuntu 22.04.1 LTS

2023-02-01 Thread Chris Angelico
‪On Thu, 2 Feb 2023 at 03:33, ‫אורי‬‎ wrote:‬ > > Hi, > > I have a server with Ubuntu 22.04.1 LTS and the Python version there > is Python 3.10.6. Is there a safe way to upgrade to the latest version of > Python 3.10 (3.10.9)? I tried with the OS update and upgrade but th

Re: Upgrading Python on Ubuntu 22.04.1 LTS

2023-02-01 Thread Skip Montanaro
> > > I have a server with Ubuntu 22.04.1 LTS and the Python version there > is Python 3.10.6. Is there a safe way to upgrade to the latest version of > Python 3.10 (3.10.9)? I tried with the OS update and upgrade but the Python > version remained the same. > > I hav

Re: Upgrading Python on Ubuntu 22.04.1 LTS

2023-02-01 Thread Grant Edwards
On 2023-02-01, אורי wrote: > I have a server with Ubuntu 22.04.1 LTS and the Python version there > is Python 3.10.6. Is there a safe way to upgrade to the latest version of > Python 3.10 (3.10.9)? I tried with the OS update and upgrade but the Python > version remai

Upgrading Python on Ubuntu 22.04.1 LTS

2023-02-01 Thread אורי
Hi, I have a server with Ubuntu 22.04.1 LTS and the Python version there is Python 3.10.6. Is there a safe way to upgrade to the latest version of Python 3.10 (3.10.9)? I tried with the OS update and upgrade but the Python version remained the same. Thanks, אורי u...@speedy.net -- https

Re: Python not found

2023-01-27 Thread Eryk Sun
On 1/27/23, Bela Gesztesi wrote: > > I'm not that familiar with the steps to be taken. > > How do I find the app version of Python for my desktop? > or > I don't know how to disable the "python.exe" and "python3.exe" app aliases To install the app versio

Re: HTTP server benchmarking/load testing in Python

2023-01-26 Thread Thomas Passin
Barry Maybe five or ten minutes at or above 100 deg C every few months might not make a noticeable lifetime difference, who knows? I don't want to make a habit of it. I wouldn't drive my car very long with a low oil pressure warning active, either. -- https://mail.python.org/mailman/

Re: HTTP server benchmarking/load testing in Python

2023-01-26 Thread Thomas Passin
t computers didn't have throttling and power reduction, so I got sensitized to it. Better safe than sorry. Airliners have safeguards against stalling, but it's a lot better not to try to stall them anyway (speaking as a (non-airline) pilot). Let's give this a rest, shall we? -- https://mail.python.org/mailman/listinfo/python-list

Re: HTTP server benchmarking/load testing in Python

2023-01-26 Thread Chris Angelico
.intel.com/content/www/us/en/support/articles/05597/processors.html > > The utilities I used always stated a 100 deg limit for Tj. > Yeah, so "maximum" is "before performance loss", not "before damage". ChrisA -- https://mail.python.org/mailman/listinfo/python-list

Re: HTTP server benchmarking/load testing in Python

2023-01-26 Thread Thomas Passin
stem is throttling and power limiting during this particular test. That's good. And I'm still going to stay away from the highest temperatures when possible. Nuff said! -- https://mail.python.org/mailman/listinfo/python-list

Re: HTTP server benchmarking/load testing in Python

2023-01-26 Thread Barry
or above 100 deg C every few months might not > make a noticeable lifetime difference, who knows? I don't want to make a > habit of it. I wouldn't drive my car very long with a low oil pressure > warning active, either. > -- > https://mail.python.org/mailman/listinfo/python-list > -- https://mail.python.org/mailman/listinfo/python-list

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

2023-01-26 Thread Eryk Sun
endif /* _DEBUG */ # endif /* _MSC_VER */ # endif /* Py_BUILD_CORE */ #endif /* MS_COREDLL */ -- https://mail.python.org/mailman/listinfo/python-list

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 > Aliase

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 > Mana

Re: HTTP server benchmarking/load testing in Python

2023-01-26 Thread Chris Angelico
basis it called it "danger". Notably, whether there's any sort of actual manufacturer threshold that that was based on. Personally? Very dubious. Your entire premise is "five degrees MUST be a problem", without any visible basis. ChrisA -- https://mail.python.org/mailman/listinfo/python-list

Re: HTTP server benchmarking/load testing in Python

2023-01-26 Thread Thomas Passin
re warning active, either." -- https://mail.python.org/mailman/listinfo/python-list

Re: HTTP server benchmarking/load testing in Python

2023-01-26 Thread Chris Angelico
personal analysis, that the CPU was just seconds away from total destruction? ChrisA -- https://mail.python.org/mailman/listinfo/python-list

Re: HTTP server benchmarking/load testing in Python

2023-01-26 Thread Thomas Passin
ssure warning active, either. -- https://mail.python.org/mailman/listinfo/python-list

Re: HTTP server benchmarking/load testing in Python

2023-01-26 Thread Grant Edwards
st throttle the fans up and the CPU down to keep the core temperature within limits? -- Grant -- https://mail.python.org/mailman/listinfo/python-list

Re: HTTP server benchmarking/load testing in Python

2023-01-26 Thread Chris Angelico
able to actually damage your CPU this way. Maybe you could reduce the lifetime that way (the same way that crypto mining can shorten the lifespan of a GPU), but it shouldn't cause any sort of immediate damage. Even on a laptop. Feel free to prove me wrong, though. ChrisA -- https://mail.python.org/mailman/listinfo/python-list

Re: HTTP server benchmarking/load testing in Python

2023-01-26 Thread Thomas Passin
ye on their CPU core temperatures. In my experience, that's a real concern, whether or not it "should not" be an issue. -- https://mail.python.org/mailman/listinfo/python-list

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

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
ng, it’s the OS and CPU protecting themselves from overheating. Usually because the manufacturer didn’t add enough cooling to keep the system cool enough with a continuous load. (Which to be honest, almost no laptop designers do, because they assuming you are going to be having a spiky load instead… - Benjamin -- https://mail.python.org/mailman/listinfo/python-list

Re: HTTP server benchmarking/load testing in Python

2023-01-26 Thread Grant Edwards
consumer grade laptop - my development > machine - you need to be careful. 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 needs to be fixed. -- Grant -- https://mail.python.org/mailman/listinfo/python-list

Re: HTTP server benchmarking/load testing in Python

2023-01-26 Thread Thomas Passin
love it. Thanks again. That's the one I was trying to remember! I think it was in in its early days when I tried it out. -- https://mail.python.org/mailman/listinfo/python-list

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

Re: HTTP server benchmarking/load testing in Python

2023-01-25 Thread Dino
://mail.python.org/mailman/listinfo/python-list

Re: HTTP server benchmarking/load testing in Python

2023-01-25 Thread Thomas Passin
er server with much better cooling. I didn't care about that except for protecting my own laptop. And this is way OT for the OP's question. -- https://mail.python.org/mailman/listinfo/python-list

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

2023-01-25 Thread John McCardle
Greetings, I'm working on embedding a Python interpreter into a C++ application. My embedding example program is here, largely taken from Python docs: https://gist.github.com/jmccardle/f3f19d3753ae023aa52b927f0d181c43 I'm simply not interested in writing in Lua, so regardless of any

Re: HTTP server benchmarking/load testing in Python

2023-01-25 Thread Chris Angelico
ne specific possible consequence, rather than, I dunno, just put the system under load and see how it performs? ChrisA -- https://mail.python.org/mailman/listinfo/python-list

Re: HTTP server benchmarking/load testing in Python

2023-01-25 Thread Thomas Passin
not servicing the requests per se that's the issue, it's the heavy computing load that has to be done for each request. The CPU is generally pegged at 100% for most or all of the test. -- https://mail.python.org/mailman/listinfo/python-list

Re: HTTP server benchmarking/load testing in Python

2023-01-25 Thread Peter J. Holzer
n: PGP signature -- https://mail.python.org/mailman/listinfo/python-list

Re: HTTP server benchmarking/load testing in Python

2023-01-25 Thread Thomas Passin
On 1/25/2023 3:29 PM, Dino wrote: On 1/25/2023 1:21 PM, Thomas Passin wrote: I actually have a Python program that does exactly this. Thank you, Thomas. I'll check out Locust, mentioned by Orzodk, as it looks like a mature library that appears to do exactly what I was hoping. Great

Re: HTTP server benchmarking/load testing in Python

2023-01-25 Thread Dino
On 1/25/2023 1:21 PM, Thomas Passin wrote: I actually have a Python program that does exactly this. Thank you, Thomas. I'll check out Locust, mentioned by Orzodk, as it looks like a mature library that appears to do exactly what I was hoping. -- https://mail.python.org/mailman

Re: HTTP server benchmarking/load testing in Python

2023-01-25 Thread Dino
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! -- https://mail.python.org/mailman/listinfo/python-list

Re: HTTP server benchmarking/load testing in Python

2023-01-25 Thread orzodk
Dino writes: > Hello, I could use something like Apache ab in Python ( > https://httpd.apache.org/docs/2.4/programs/ab.html ). > > The reason why ab doesn't quite cut it for me is that I need to define > a pool of HTTP requests and I want the tool to run those (as opposed > t

Re: HTTP server benchmarking/load testing in Python

2023-01-25 Thread Thomas Passin
On 1/25/2023 10:53 AM, Dino wrote: Hello, I could use something like Apache ab in Python ( https://httpd.apache.org/docs/2.4/programs/ab.html ). The reason why ab doesn't quite cut it for me is that I need to define a pool of HTTP requests and I want the tool to run those (as opposed

HTTP server benchmarking/load testing in Python

2023-01-25 Thread Dino
Hello, I could use something like Apache ab in Python ( https://httpd.apache.org/docs/2.4/programs/ab.html ). The reason why ab doesn't quite cut it for me is that I need to define a pool of HTTP requests and I want the tool to run those (as opposed to running the same request over

Re: tree representation of Python data

2023-01-22 Thread Thomas Passin
│   │   └── test-documents │   └── validate-semantic │   ├── 2and3 │   ├── bugs │   └── oas3 └── standalone     └── topbar-insert I just thought that it would be great if there was a Python utility that visualized a similar graph for nested data structures. Of course I am aware of indent

Re: tree representation of Python data

2023-01-21 Thread Dino
]) return result -- https://mail.python.org/mailman/listinfo/python-list

Re: tree representation of Python data

2023-01-21 Thread Weatherby,Gerard
https://docs.python.org/3/library/pprint.html From: Python-list on behalf of Dino Date: Saturday, January 21, 2023 at 11:42 AM To: python-list@python.org Subject: tree representation of Python data *** Attention: This is an external email. Use caution responding, opening attachments

tree representation of Python data

2023-01-21 Thread Dino
-semantic │   ├── 2and3 │   ├── bugs │   └── oas3 └── standalone └── topbar-insert I just thought that it would be great if there was a Python utility that visualized a similar graph for nested data structures. Of course I am aware of indent (json.dumps()) and pprint

[Python-announce] python-oracledb 1.2.2

2023-01-19 Thread Anthony Tuininga
What is python-oracledb? python-oracledb is a Python extension module that enables access to Oracle Database for Python and conforms to the Python database API 2.0 specifications with a number of enhancements. This module is intended to eventually replace cx_Oracle. Where do I get it? https

Re: Python - working with xml/lxml/objectify/schemas, datatypes, and assignments

2023-01-19 Thread Dan Kolis
. I suspect there isn't an easy way out, and probably the thing your making has to be 100% usably done before a maintenance tools can be created to make it easy, anyway. Its the way it is, maybe, Daniel B. Kolis -- https://mail.python.org/mailman/listinfo/python-list

[Python-announce] python-build-standalone 3.11 distributions

2023-01-17 Thread Gregory Szorc
python-build-standalone (https://github.com/indygreg/python-build-standalone) is a project that produces standalone, highly portable builds of CPython that are designed to run on as many machines as possible with no additional dependencies. I created the project for PyOxidizer (https://github.com

Re: Python - working with xml/lxml/objectify/schemas, datatypes, and assignments

2023-01-15 Thread aapost
On 1/11/23 13:21, Dieter Maurer wrote: aapost wrote at 2023-1-10 22:15 -0500: On 1/4/23 12:13, aapost wrote: On 1/4/23 09:42, Dieter Maurer wrote: ... You might have a look at `PyXB`, too. It tries hard to enforce schema restrictions in Python code. ... Unfortunately picking it apart

Re: Python - working with xml/lxml/objectify/schemas, datatypes, and assignments

2023-01-15 Thread aapost
of the box, but it does have a to_objects function and I have learned quite a bit while picking it apart. I am able to patch it to be good enough for my requirements. Below is the patch for anyone interested: # # Contribution for the xmlschema & elementpath python modules which are # Copyrigh

Re: To clarify how Python handles two equal objects

2023-01-15 Thread Mark Bourne
described in my original post is limited to a case such as x = y where both "x" and "y" are arrays – whether they are lists in Python, or from the array module – and the question in a compiled C extension is whether the assignment can be done simply by "x" taking

RE: To clarify how Python handles two equal objects

2023-01-15 Thread avi.e.gross
<<< Frank Millman>>> My 'aha' moment came when I understood that a python object has only three properties - a type, an id, and a value. It does *not* have a name. Yes, Frank, it is a bit like how some people need to wrap their minds around a concept like an anonymous functi

Re: To clarify how Python handles two equal objects

2023-01-14 Thread Frank Millman
On 2023-01-15 4:36 AM, Roel Schroeven wrote: Chris Angelico schreef op 15/01/2023 om 1:41: On Sun, 15 Jan 2023 at 11:38, Jen Kris wrote: > > Yes, in fact I asked my original question – "I discovered something about Python array handling that I would like to clarify" -

Re: To clarify how Python handles two equal objects

2023-01-14 Thread Roel Schroeven
Chris Angelico schreef op 15/01/2023 om 1:41: On Sun, 15 Jan 2023 at 11:38, Jen Kris wrote: > > Yes, in fact I asked my original question – "I discovered something about Python array handling that I would like to clarify" -- because I saw that Python did it t

Re: To clarify how Python handles two equal objects

2023-01-14 Thread Chris Angelico
On Sun, 15 Jan 2023 at 11:38, Jen Kris wrote: > > Yes, in fact I asked my original question – "I discovered something about > Python array handling that I would like to clarify" -- because I saw that > Python did it that way. > Yep. This is not specific to arrays;

Re: To clarify how Python handles two equal objects

2023-01-14 Thread Jen Kris via Python-list
Yes, in fact I asked my original question – "I discovered something about Python array handling that I would like to clarify" -- because I saw that Python did it that way.  Jan 14, 2023, 15:51 by ros...@gmail.com: > On Sun, 15 Jan 2023 at 10:32, Jen Kris via Python-

Re: To clarify how Python handles two equal objects

2023-01-14 Thread Chris Angelico
On Sun, 15 Jan 2023 at 10:32, Jen Kris via Python-list wrote: > The situation I described in my original post is limited to a case such as x > = y ... the assignment can be done simply by "x" taking the pointer to "y" > rather than moving all the data from &quo

RE: To clarify how Python handles two equal objects

2023-01-14 Thread Jen Kris via Python-list
original post is limited to a case such as x = y where both "x" and "y" are arrays – whether they are lists in Python, or from the array module – and the question in a compiled C extension is whether the assignment can be done simply by "x" taking the pointer

[Python-announce] pytest 7.2.1

2023-01-14 Thread Bruno Oliveira
Sottile * Bruno Oliveira * Daniel Valenzuela * Kadino * Prerak Patel * Ronny Pfannschmidt * Santiago Castro * s-padmanaban Happy testing, The pytest Development Team ___ Python-announce-list mailing list -- python-announce-list@python.org To unsubscribe

RE: To clarify how Python handles two equal objects

2023-01-13 Thread avi.e.gross
that changed. But this is really far from unique. In the example given of creating a partial call, what if you made a second copy to that call then the first variable to the partial function was re-defined. -Original Message- From: Python-list On Behalf Of Axel Reichert Sent: Friday, January

RE: To clarify how Python handles two equal objects

2023-01-13 Thread avi.e.gross
scope. So even if your code is currently valid, after it changes, a later compiler if it detected some change might not want to do your speedup. I think the subject line of the message we keep exchanging is now a bit misleading. It is not about two objects nor really about how python handles

RE: To clarify how Python handles two equal objects

2023-01-13 Thread avi.e.gross
Jen, This may not be on target but I was wondering about your needs in this category. Are all your data in a form where all in a cluster are the same object type, such as floating point? Python has features designed to allow you to get multiple views on such objects such as memoryview

Re: To clarify how Python handles two equal objects

2023-01-13 Thread Peter J. Holzer
On 2023-01-13 16:57:45 +0100, Jen Kris via Python-list wrote: > Thanks for your comments.  You make a good point.  > > Going back to my original question, and using your slice() example:  > > middle_by_two = slice(5, 10, 2) > nums = [n for n in range(12)] > q = nums[midd

Re: To clarify how Python handles two equal objects

2023-01-13 Thread Jen Kris via Python-list
gt;> b=1234 >   >>> a is b >   False > > Not sure what happens if you manipulate the data referenced by 'b' in the > first example thinking you are changing something referred to by 'a' ... but > you might be smart to NOT think that you know. > > > &

Re: To clarify how Python handles two equal objects

2023-01-13 Thread Axel Reichert
mind the behaviour to me seems to be completely as expected. No surprises here, or do I miss something? Best regards Axel -- https://mail.python.org/mailman/listinfo/python-list

Re: To clarify how Python handles two equal objects

2023-01-13 Thread Bob van der Poel
alse Not sure what happens if you manipulate the data referenced by 'b' in the first example thinking you are changing something referred to by 'a' ... but you might be smart to NOT think that you know. On Fri, Jan 13, 2023 at 9:00 AM Jen Kris via Python-list < python-list@python.org> wro

RE: To clarify how Python handles two equal objects

2023-01-13 Thread Jen Kris via Python-list
s[middle_by_two] x = id(q) y = id(b) Now "x" and "y" are different, as we would expect.  So when writing a spot speed up in a compiled language, you can see in the Python source if either is reassigned, so you’ll know how to handle it.  The motivation behind my question wa

<    5   6   7   8   9   10   11   12   13   14   >