ANN: eGenix PyRun - One file Python Runtime 2.5.0

2024-07-01 Thread eGenix Team via Python-list
*ANNOUNCING* eGenix PyRun - One file Python Runtime Version 2.5.0 Python runtime taking up just 4-6MB on disk This announcement is also available on our web-site for online reading: https://www.egenix.com/company/news/eGenix-PyRun-2.5.0-GA.html

Re: python for irc client

2024-07-04 Thread Left Right via Python-list
hahe via Python-list wrote: > > On Thu, Jul 4, 2024 at 5:22 AM inhahe wrote: > > > > > > > On Thu, Jul 4, 2024 at 5:14 AM Daniel via Python-list < > > [email protected]> wrote: > > > >> > >> In your wisdom, would python be a good

Best use of "open" context manager

2024-07-06 Thread Rob Cliffe via Python-list
Consider this scenario (which I ran into in real life):     I want to open a text file and do a lot of processing on the lines of that file.     If the file does not exist I want to take appropriate action, e.g. print an error message and abort the program. I might write it like this: try:    

Re: Best use of "open" context manager

2024-07-06 Thread Dan Sommers via Python-list
On 2024-07-06 at 11:49:06 +0100, Rob Cliffe via Python-list wrote: > Is there a better / more Pythonic solution? https://docs.python.org/3/library/fileinput.html At least this attempts to abstract the problem of iterating over a file (or multiple files) into a library routine. I've u

Re: Best use of "open" context manager

2024-07-06 Thread Alan Gauld via Python-list
On 06/07/2024 11:49, Rob Cliffe via Python-list wrote: >     If the file does not exist I want to take appropriate action, e.g. > print an error message and abort the program. > I might write it like this: > > try: >     with open(FileName) as f: >         for ln in f:

Re: Best use of "open" context manager

2024-07-06 Thread Oscar Benjamin via Python-list
On Sat, 6 Jul 2024 at 11:55, Rob Cliffe via Python-list wrote: > > Consider this scenario (which I ran into in real life): > I want to open a text file and do a lot of processing on the lines > of that file. > If the file does not exist I want to take appropriate action,

Re: Best use of "open" context manager

2024-07-06 Thread Thomas Passin via Python-list
On 7/6/2024 6:49 AM, Rob Cliffe via Python-list wrote: Consider this scenario (which I ran into in real life):     I want to open a text file and do a lot of processing on the lines of that file.     If the file does not exist I want to take appropriate action, e.g. print an error message

Re: Best use of "open" context manager

2024-07-06 Thread Richard Damon via Python-list
   print(f"File {FileName} not found:")    sys.exit() Now the "process" function has been factored out and can be well documented as to what it is doing on each line, and this code can be documented as running process on each line of the file. On 7/6/24 6:49 AM, Rob Cliffe vi

Re: Best use of "open" context manager

2024-07-06 Thread Cameron Simpson via Python-list
On 06Jul2024 11:49, Rob Cliffe wrote: try:     f = open(FileName) as f:     FileLines = f.readlines() except FileNotFoundError:     print(f"File {FileName} not found")     sys.exit() # I forgot to put "f.close()" here -:) for ln in File Lines:         print("I do a lot of processing here")      

Best (simplest) way to share data between processes

2024-07-07 Thread Chris Green via Python-list
I have a Raspberry Pi in my boat that uses I2C to read a number of voltages and currents (using ADS1115 A2D) so I can monitor the battery condition etc. At present various different scripts (i.e. processes) just read the values using the I2C bus whenever they need to but I'm pretty sure this (quit

Re: Best (simplest) way to share data between processes

2024-07-07 Thread Piergiorgio Sartor via Python-list
On 06/07/2024 09.28, Chris Green wrote: I have a Raspberry Pi in my boat that uses I2C to read a number of voltages and currents (using ADS1115 A2D) so I can monitor the battery condition etc. At present various different scripts (i.e. processes) just read the values using the I2C bus whenever t

Re: Best use of "open" context manager

2024-07-07 Thread Rob Cliffe via Python-list
On 07/07/2024 02:08, Cameron Simpson wrote: On 06Jul2024 11:49, Rob Cliffe wrote: try:     f = open(FileName) as f:     FileLines = f.readlines() except FileNotFoundError:     print(f"File {FileName} not found")     sys.exit() # I forgot to put "f.close()" here -:) for ln in File Lines:      

Re: Best use of "open" context manager

2024-07-07 Thread Cameron Simpson via Python-list
On 07Jul2024 22:22, Rob Cliffe wrote: Remember, the `open()` call returns a file object _which can be used as a context manager_. It is separate from the `with` itself. Did you test this?     f = open(FileName) as f: is not legal syntax. No. You're right, remove the "as f:". it's legal, but

Re: Best use of "open" context manager

2024-07-07 Thread Cameron Simpson via Python-list
On 07Jul2024 22:22, Rob Cliffe wrote: it's legal, but doesn't work (trying to access the file after "with f" raises the same     ValueError: I/O operation on closed file. Just to this: of course. The with closes the file. But my version runs the with after the try/except. -- https://mail.py

Re: Best (simplest) way to share data between processes

2024-07-08 Thread Barry Scott via Python-list
> On 7 Jul 2024, at 23:47, MRAB via Python-list wrote: > > For clarity I'd recommend os.replace instead. This is because on Windows > os.rename it would complain if the target file already exists, but os.replace > has the same behaviour on both Linux and Windows. Agree

Re: PyGILState_Ensure() deadlocks, why?

2024-07-08 Thread Barry Scott via Python-list
> On 7 Jul 2024, at 23:21, Barry via Python-list wrote: > > > >> On 7 Jul 2024, at 22:09, Tomas Ukkonen via Python-list >> wrote: >> >>Py_Initialize(); > > You also need to tell python to init threading. I'm in front of my dev machine

Re: Best (simplest) way to share data between processes

2024-07-08 Thread Left Right via Python-list
d executing them one at a time. On Sun, Jul 7, 2024 at 11:12 PM Chris Green via Python-list wrote: > > I have a Raspberry Pi in my boat that uses I2C to read a number of > voltages and currents (using ADS1115 A2D) so I can monitor the battery > condition etc. > > At present var

Re: Best (simplest) way to share data between processes

2024-07-08 Thread Chris Green via Python-list
Piergiorgio Sartor wrote: > On 06/07/2024 09.28, Chris Green wrote: > > I have a Raspberry Pi in my boat that uses I2C to read a number of > > voltages and currents (using ADS1115 A2D) so I can monitor the battery > > condition etc. > > > > At present various different scripts (i.e. processes) j

Re: Best (simplest) way to share data (Posting On Python-List Prohibited)

2024-07-08 Thread Chris Green via Python-list
Lawrence D'Oliveiro wrote: > On Sat, 6 Jul 2024 08:28:41 +0100, Chris Green wrote: > > > One fairly obvious way is to have single process/script which reads the > > A2D values continuously and writes them to a file. All other scripts > > then read from the file as needed, a simple file lock can

Re: Best use of "open" context manager

2024-07-08 Thread Rob Cliffe via Python-list
On 06/07/2024 12:57, Oscar Benjamin via Python-list wrote: On Sat, 6 Jul 2024 at 11:55, Rob Cliffe via Python-list wrote: Consider this scenario (which I ran into in real life): I want to open a text file and do a lot of processing on the lines of that file. If the file does not

Re: A new feature request - parser add_mutually_exclusive_group - add a default value

2024-07-09 Thread Barry Scott via Python-list
> On 9 Jul 2024, at 06:13, ⁨אורי via Python-list⁩ <⁨[email protected]⁩> > wrote: > > I tried to subscribe to Python-ideas These days ideas are discussed on https://discuss.python.org/ It is rare to see an idea on the mailing list. Barry -- https://mail.python.org/mailman/listinfo/pyt

Re: Best (simplest) way to share data

2024-07-11 Thread Chris Green via Python-list
Stefan Ram wrote: > Chris Green wrote or quoted: > >That's exactly the sort of solution I was wondering about. Is there a > >ready made module/library for handling this sort of thing? Basically > >it will just be a string of a few tens of characters that would be > >kept up to date by one proce

RE: Relatively prime integers in NumPy

2024-07-11 Thread AVI GROSS via Python-list
words about -1 and 1 are about. Perhaps someone else knows. -Original Message- From: Python-list On Behalf Of Popov, Dmitry Yu via Python-list Sent: Monday, July 8, 2024 3:10 PM To: Popov, Dmitry Yu via Python-list Subject: Relatively prime integers in NumPy Dear Sirs. Does NumPy

Re: Relatively prime integers in NumPy

2024-07-11 Thread Oscar Benjamin via Python-list
(posting on-list this time) On Thu, 11 Jul 2024 at 15:18, Popov, Dmitry Yu via Python-list wrote: > > Dear Sirs. > > Does NumPy provide a simple mechanism to identify relatively prime integers, > i.e. integers which don't have a common factor other than +1 or -1? For > e

RE: Relatively prime integers in NumPy

2024-07-11 Thread AVI GROSS via Python-list
, 2024 3:26 PM To: [email protected]; 'Popov, Dmitry Yu via Python-list' Subject: Re: Relatively prime integers in NumPy Thank you for your interest. My explanation is too concise indeed, sorry. So far, I have used Python code with three enclosed 'for' loops for th

Re: Password Hash Validation (Posting On Python-List Prohibited)

2024-07-12 Thread Lawrence D'Oliveiro via Python-list
On Fri, 21 Jun 2024 06:32:58 - (UTC), I wrote: > On Fri, 21 Jun 2024 03:40:55 - (UTC), I wrote: > >> I think I will create my own wrapper using ctypes. > > Done . The repo now includes an example script that exercises the various functions of the module

RE: Relatively prime integers in NumPy

2024-07-12 Thread AVI GROSS via Python-list
ry Yu via Python-list' ; [email protected]; Popov, Dmitry Yu Subject: Re: Relatively prime integers in NumPy Thank you very much, Oscar. Using the following code looks like a much better solution than my current Python code indeed. np.gcd.reduce(np.transpose(a)) or np.gc

RE: Relatively prime integers in NumPy

2024-07-12 Thread AVI GROSS via Python-list
v, Dmitry Yu Sent: Friday, July 12, 2024 11:10 PM To: [email protected]; 'Popov, Dmitry Yu via Python-list' ; [email protected] Subject: Re: Relatively prime integers in NumPy Thank you very much. List comprehensions make code much more concise indeed. Do list com

[RELEASE] Python 3.13.0 beta 4 released.

2024-07-18 Thread Thomas Wouters via Python-list
Python 3.13.0b4, the final beta of Python 3.13, is now available: https://www.python.org/downloads/release/python-3130b4/ *This is a beta preview of Python 3.13* Python 3.13 is still in development. This release, 3.13.0b4, is the *final* beta release preview of 3.13. Beta release previews are i

Issue with pip Installation on My Laptop

2024-07-26 Thread Lizna Shah via Python-list
Hello, I am experiencing a problem with pip not being installed on my laptop and would appreciate any assistance you can provide. Here are the details of my issue: - Operating System: Windows Python Version: Python 3.10.10 Steps I have already taken to try and resolve the issue: 1. Verified t

Re: Issue with pip Installation on My Laptop

2024-07-26 Thread Thomas Passin via Python-list
On 7/26/2024 7:25 AM, Lizna Shah via Python-list wrote: OSError: [WinError 225] Operation did not complete successfully because the file contains a virus or potentially unwanted software That part of the error message tells you the story. Windows thinks some file in the install has been

Re: Issue with pip Installation on My Laptop

2024-07-27 Thread Mats Wichmann via Python-list
On 7/26/24 16:28, Thomas Passin via Python-list wrote: On 7/26/2024 7:25 AM, Lizna Shah via Python-list wrote: OSError: [WinError 225] Operation did not complete successfully because the file contains a virus or potentially unwanted software That part of the error message tells you the story

Re: Issue with pip Installation on My Laptop

2024-07-27 Thread Mats Wichmann via Python-list
On 7/27/24 17:13, MRAB via Python-list wrote: On 2024-07-27 21:58, Mats Wichmann via Python-list wrote: On 7/26/24 16:28, Thomas Passin via Python-list wrote: On 7/26/2024 7:25 AM, Lizna Shah via Python-list wrote: OSError: [WinError 225] Operation did not complete successfully because the

Installation of Slixfeed with pip fails

2024-07-30 Thread Schimon Jehudah via Python-list
Greetings, to one and all! My name is Schimon, and I am the developer of a news chat bot for the XMPP network, called Slixfeed. I have recently added support for OMEMO encryption, and a friend of mine has reported that there is an issue installing it with pip. I suppoes this is a fault of a pack

Predicting an object over an pretrained model is not working

2024-07-30 Thread marc nicole via Python-list
Hello all, I want to predict an object by given as input an image and want to have my model be able to predict the label. I have trained a model using tensorflow based on annotated database where the target object to predict was added to the pretrained model. the code I am using is the following w

Re: Predicting an object over an pretrained model is not working

2024-07-30 Thread Thomas Passin via Python-list
On 7/30/2024 2:18 PM, marc nicole via Python-list wrote: Hello all, I want to predict an object by given as input an image and want to have my model be able to predict the label. I have trained a model using tensorflow based on annotated database where the target object to predict was added to

Re: Predicting an object over an pretrained model is not working

2024-07-30 Thread marc nicole via Python-list
OK, but how's the probability of small_ball greater than others? I can't find it anyway, what's its value? Le mar. 30 juil. 2024 à 21:37, Thomas Passin via Python-list < [email protected]> a écrit : > On 7/30/2024 2:18 PM, marc nicole via Python-list wrote: > >

Re: Predicting an object over an pretrained model is not working

2024-07-30 Thread Thomas Passin via Python-list
tand what those function calls are returning. It's documented somewhere, right? And you really do need to know the probabilities of the competing images because otherwise you won't know how confident you can be that the identification is a strong one. Le mar. 30 juil. 202

Re: Predicting an object over an pretrained model is not working

2024-07-31 Thread marc nicole via Python-list
and a sheep wont have any target position or any probability whatsoever in the image weirdobject.jpg On Wed, 31 Jul 2024, 00:19 dn via Python-list, wrote: > On 31/07/24 06:18, marc nicole via Python-list wrote: > > Hello all, > > > > I want to predict an object by given as in

Re: Predicting an object over an pretrained model is not working

2024-07-31 Thread Grant Edwards via Python-list
On 2024-07-31, marc nicole via Python-list wrote: > I suppose the meaning of those numbers comes from this line > predicts_dict[class_name].append([int(xmin), int(ymin), int(xmax), > int(ymax), P[index]]) as well as the yolo inference call. But i was > expecting zeros for all cl

Re: Predicting an object over an pretrained model is not working

2024-07-31 Thread marc nicole via Python-list
You invitation to read on machine is not helping, if you wanna enlighten us on this specific case otherwise pls spare me such comments which i know On Wed, 31 Jul 2024, 16:00 Grant Edwards via Python-list, < [email protected]> wrote: > On 2024-07-31, marc nicole via Python-li

[RELEASE] Python 3.13.0 release candidate 1 released

2024-08-01 Thread Thomas Wouters via Python-list
Python 3.13 *release candidate 1* is now available. https://www.python.org/downloads/release/python-3130rc1/ This is the first release candidate of Python 3

Re: Installation of Slixfeed with pip fails

2024-08-03 Thread Barry Scott via Python-list
> On 30 Jul 2024, at 18:36, Schimon Jehudah via Python-list > wrote: > > Greetings, to one and all! > > My name is Schimon, and I am the developer of a news chat bot for the > XMPP network, called Slixfeed. > > I have recently added support for OMEMO encryption,

Re: Installation of Slixfeed with pip fails

2024-08-03 Thread Thomas Passin via Python-list
On 8/3/2024 2:49 PM, Barry Scott via Python-list wrote: On 30 Jul 2024, at 18:36, Schimon Jehudah via Python-list wrote: Greetings, to one and all! My name is Schimon, and I am the developer of a news chat bot for the XMPP network, called Slixfeed. I have recently added support for OMEMO

Re: Help needed - - running into issues with python and its tools

2024-08-03 Thread Cameron Simpson via Python-list
On 03Aug2024 16:34, o1bigtenor wrote: So please - - - how do I set up a venv so that I can install and run python 3.12 (and other needed programs related to 3.12) inside? Maybe this github comment will help with this: https://github.com/orgs/micropython/discussions/10255#discussioncomment-444

Re: Help needed - - running into issues with python and its tools

2024-08-04 Thread Mats Wichmann via Python-list
On 8/3/24 20:03, o1bigtenor via Python-list wrote: My question was, is and will be (and the doc absolutely doesn't cover it) how do I install a different version in the venv so that python 3.11.x on the system is not discombobulated by the python 3.12.x in the venv. That python 3.12 woul

Re: Help needed - - running into issues with python and its tools

2024-08-05 Thread Mats Wichmann via Python-list
On 8/5/24 06:48, o1bigtenor via Python-list wrote: On Sun, Aug 4, 2024 at 8:49 AM Mats Wichmann via Python-list < [email protected]> wrote: On 8/3/24 20:03, o1bigtenor via Python-list wrote: My question was, is and will be (and the doc absolutely doesn't cover it) how do

Re: Help needed - - running into issues with python and its tools

2024-08-05 Thread Bill Deegan via Python-list
o.. -Bill On Mon, Aug 5, 2024 at 1:41 PM o1bigtenor via Python-list < [email protected]> wrote: > Matt - if you would rather that you were not included in the address list - > - > please advise. > > On Mon, Aug 5, 2024 at 8:51 AM Mats Wichmann wrote: > > > On

Re: Help needed - - running into issues with python and its tools

2024-08-05 Thread Mats Wichmann via Python-list
On 8/5/24 14:39, o1bigtenor wrote: Matt - if you would rather that you were not included in the address list - - please advise. On Mon, Aug 5, 2024 at 8:51 AM Mats Wichmann <mailto:[email protected]>> wrote: On 8/5/24 06:48, o1bigtenor via Python-list wrote: > On Sun, Au

Re: Help needed - - running into issues with python and its tools

2024-08-05 Thread Mats Wichmann via Python-list
On 8/5/24 15:17, o1bigtenor via Python-list wrote: That's something like pyenv install 3.12.4 $ pyenv install 3.12.4 bash: pyenv: command not found pyenv is not a 'global' package there is a mountain of /root/.pyenv files though there is also quite a number of /root

Re: Help needed - - running into issues with python and its tools

2024-08-05 Thread Bill Deegan via Python-list
paste the error output you're getting. On Mon, Aug 5, 2024 at 3:13 PM Mats Wichmann via Python-list < [email protected]> wrote: > On 8/5/24 15:17, o1bigtenor via Python-list wrote: > > >> That's something like > >> > >> pyenv install 3.12

Re: python C-api and thread

2024-08-05 Thread Grant Edwards via Python-list
On 2024-08-05, aotto1968 via Python-list wrote: > Is it possible to run two completely independent Python interpreters > in one process, each using a thread? > > By independent, I mean that no data is shared between the > interpreters and thus the C API can be used without any ot

Re: python C-api and thread

2024-08-05 Thread Chris Angelico via Python-list
On Tue, 6 Aug 2024 at 08:48, aotto1968 via Python-list wrote: > > hi, > > Is it possible to run two completely independent Python interpreters in one > process, each using a thread? > > By independent, I mean that no data is shared between the interpreters and > th

Re: Help needed - - running into issues with python and its tools

2024-08-05 Thread Bill Deegan via Python-list
g 5, 2024 at 5:28 PM Bill Deegan via Python-list < > [email protected]> wrote: > >> Did Mats suggestion of: >> python3.13 -m venv new_venv >> $ new_venv/bin/python --version >> Python 3.13.0b4 >> $ source new_venv/bin/activate >> >> Not work

Issue bootstrapping Python - troubleshooting steps?

2024-08-05 Thread Piper McCorkle via Python-list
Hi! I'm working on a Linux From Scratch sort of system, and part of that is bootstrapping Python. I'm running into an error message in the compilation though - could anyone help me with next steps on troubleshooting the error? Error: > ./_bootstrap_python /tmp/sources/Python-3.12.4/Programs/_f

Re: Help needed - - running into issues with python and its tools

2024-08-06 Thread Bill Deegan via Python-list
I’m not looking through all the packages you have installed What version of python is installed on your system? On Tue, Aug 6, 2024 at 5:24 AM o1bigtenor wrote: > > > On Mon, Aug 5, 2024 at 10:36 PM Bill Deegan > wrote: > >> why reply to me instead of to the list? >> It's generally considered

Re: python C-api and thread

2024-08-06 Thread Barry Scott via Python-list
> On 6 Aug 2024, at 07:11, aotto1968 via Python-list > wrote: > > I know but I use a thread like a process because the "conversation" between > the threads is done by my > software. a Thread is usually faster to startup (thread-pool) this mean for > high-lo

Re: Issue bootstrapping Python - troubleshooting steps?

2024-08-06 Thread Barry Scott via Python-list
> On 6 Aug 2024, at 02:49, Piper McCorkle via Python-list > wrote: > > $ /tmp/sources/Python-3.12.4/configure --enable-shared --with-system-expat > --enable-optimizations --prefix= I assume that you must provide a value for --prefix. The linux default would be --pre

[RELEASE] Python 3.12.5 released

2024-08-07 Thread Thomas Wouters via Python-list
Python 3.12.5 is now available: https://www.python.org/downloads/release/python-3125/ This is the fifth maintenance release of Python 3.12 Python 3.12 is the newest major release of the Python programming language, and it contains many new features and optimizations. 3.12.5 is the latest mainten

Re: python3 package import difference?

2024-08-07 Thread Ronaldo Sc via Python-list
t; , this is not a good practice when using only some features in your module(s) because you'll inject more garbage into memory if there are features you're not using. Share with us the updates on your code. Ronaldo Em qua., 7 de ago. de 2024 às 14:40, Tobiah via Python-list < pytho

Re: python3 package import difference?

2024-08-07 Thread Chris Angelico via Python-list
On Thu, 8 Aug 2024 at 03:40, Tobiah via Python-list wrote: > The one under rcs.dbi contains: > > from dbi import * > from regos import * > You probably want these to be package-relative now: from .dbi import * from .regos import * Or, since you're using names

Re: python3 package import difference?

2024-08-07 Thread Cameron Simpson via Python-list
On 07Aug2024 08:35, Tobiah wrote: When I do the same import with python3, I get: Traceback (most recent call last): File "/home/toby/me", line 1, in import rcs.dbi File "/usr/regos-1.0/lib/python/rcs/dbi/__init__.py", line 1, in from dbi import * ModuleNotFoundEr

Re: python3 package import difference?

2024-08-08 Thread Cameron Simpson via Python-list
On 08Aug2024 21:55, Gilmeh Serda wrote: I guess in a sense Py2 was smarter figuring out what whent where and where it came from. Or it was a bad hack that has been removed. No, Python 2 offered less control. -- https://mail.python.org/mailman/listinfo/python-list

Error codes

2024-08-11 Thread Charlotte Plant via Python-list
Hiya, I'm using the sims 4 mod constructor by Zerbu, and when saving I'm getting these error codes. I'm going around in circles trying to figure out what is causing it, and I'm stuck! Can you help please? Thank you. Errors: There was an error compiling the generated Python script. This can happen

Re: Installation of Slixfeed with pip fails

2024-08-11 Thread Schimon Jehudah via Python-list
Python-list wrote: > On 8/3/2024 2:49 PM, Barry Scott via Python-list wrote: > > > > > >> On 30 Jul 2024, at 18:36, Schimon Jehudah via Python-list > >> wrote: > >> > >> Greetings, to one and all! > >> > >> My name is Schimon

Re: Installation of Slixfeed with pip fails

2024-08-12 Thread Mats Wichmann via Python-list
On 8/11/24 07:42, Schimon Jehudah via Python-list wrote: Barry. Thomas. I agree. I do not have his machine to make observations, and therefore this report is obscured. I want to solve an issue of a friend who has attempted to install Slixfeed, which is based on OMEMO, and the installation has

troglodytes

2024-08-13 Thread Robin Becker via Python-list
I am clearly one of the troglodytes referred to in recent discussions around the PSF. I've been around in python land for far too long, my eyesight fails etc etc. I feel strongly that a miscarriage of justice has been made in the 3-month banning of a famous python developer from some areas of d

Re: Error codes

2024-08-13 Thread Barry Scott via Python-list
> On 11 Aug 2024, at 13:06, Charlotte Plant via Python-list > wrote: > > Hiya, I'm using the sims 4 mod constructor by Zerbu, and when saving I'm > getting these error codes. > I'm going around in circles trying to figure out what is causing it, and I&

Re: troglodytes

2024-08-13 Thread Michael Torrie via Python-list
On 8/13/24 3:24 AM, Robin Becker via Python-list wrote: > I am clearly one of the troglodytes referred to in recent discussions around > the PSF. I've been around in python land > for far too long, my eyesight fails etc etc. > > I feel strongly that a miscarriage of justice

Re: troglodytes

2024-08-14 Thread Left Right via Python-list
e via Python-list wrote: > > On 8/13/24 3:24 AM, Robin Becker via Python-list wrote: > > I am clearly one of the troglodytes referred to in recent discussions > > around the PSF. I've been around in python land > > for far too long, my eyesight fails etc etc. > >

Re: bring back nntp library to python3

2024-08-14 Thread Keith Thompson via Python-list
"test" writes: > why is the nntp library deprecated in recent python versions? they > clearly lost touch nntplib is not vanishing into thin air. It's just not going to be part of a default Python installation. (It's not there in Python 3.13.0rc1.) In my opinion the use of the word "deprecated"

Re: troglodytes

2024-08-14 Thread Left Right via Python-list
> Why do you have to belittle other people? Who says I have to? I like to! I like to see people driven by all sorts of low and reprehensible motives being punished for it. I don't know if I need to explain this motivation further. I think it's a very natural feeling. Human nature if you will. The

Re: bring back nntp library to python3

2024-08-14 Thread Ethan Furman via Python-list
On 8/14/24 13:14, Keith Thompson via Python-list wrote: > The rationale for removing nntplib and other modules from the default > installation is explained in PEP 0594 <https://peps.python.org/pep-0594/>. > > """ > The nntplib tests have been the cause of

Re: troglodytes

2024-08-14 Thread Ethan Furman via Python-list
On 8/14/24 15:19, Left Right via Python-list wrote: >On 8/14/24 13:26, geodandw via Python-list wrote: >> Why do you have to belittle other people? > Who says I have to? I like to! I like to see people driven by all > sorts of low and reprehensible motives being punished for it.

Re: bring back nntp library to python3

2024-08-14 Thread Left Right via Python-list
> it became simple and straightforward to > download and install packages. I think the right word for this is "delusional". But people get offended when other people use the right words. Instead they want a grotesque round-about way of saying the same thing... So, the grotesque round-about way of

Re: bring back nntp library to python3

2024-08-14 Thread Alan Gauld via Python-list
On 14/08/2024 23:32, Left Right via Python-list wrote: >> it became simple and straightforward to >> download and install packages. > > I think the right word for this is "delusional". I agree. But even if it worked it doesn't alter the fact that by not havi

Re: bring back nntp library to python3

2024-08-14 Thread Ethan Furman via Python-list
On 8/14/24 15:32, Left Right via Python-list wrote: > I think the right word for this is "delusional". But people get > offended when other people use the right words. Instead they want a > grotesque round-about way of saying the same thing... > > So, the grotesque round

Re: bring back nntp library to python3

2024-08-14 Thread Ethan Furman via Python-list
On 8/14/24 15:56, Alan Gauld via Python-list wrote: > Lots of people care but the ability to influence these > decisions seems to have been removed far from the > general python user community. Python has moved from > the BDFL/Bazaar to the Committee/Cathedral. Probably >

Re: troglodytes

2024-08-14 Thread Mike Dewhirst via Python-list
On 14/08/2024 12:54 am, Michael Torrie via Python-list wrote: On 8/13/24 3:24 AM, Robin Becker via Python-list wrote: I am clearly one of the troglodytes referred to in recent discussions around the PSF. I've been around in python land for far too long, my eyesight fails etc etc. I

Re: bring back nntp library to python3

2024-08-14 Thread gene heskett via Python-list
On 8/14/24 19:43, dn via Python-list wrote: Recently there was an election for PSF members. Did 'everyone' participate? Of course not, I didn't simply because I don't know enough have a cogent opinion. But conversations like this are would seem to be good if they don&#x

Re: troglodytes

2024-08-15 Thread Mats Wichmann via Python-list
On 8/14/24 17:53, Mike Dewhirst via Python-list wrote: I read Chris McDonough's defence of Tim Peters and he has convinced me. Not because of everything he said but because I have experience of committees. And other things. The problem is generational. Later generations can see the f

RE: new here

2024-08-20 Thread AVI GROSS via Python-list
c. I do wonder if the people at python.org want multiple forums. There is also one that sort of tutors people that obviously has an overlapping but different audience. Avi -Original Message- From: Python-list On Behalf Of MRAB via Python-list Sent: Tuesday, August 20, 2024 7:12 PM To: p

Re: new here

2024-08-21 Thread Dan Sommers via Python-list
On 2024-08-20 at 23:16:48 -0400, AVI GROSS via Python-list wrote: > I do wonder if the people at python.org want multiple forums. There is > also one that sort of tutors people that obviously has an overlapping > but different audience. $ python -m this The Zen of Python, by T

Re: new here

2024-08-21 Thread Jason Friedman via Python-list
On Wed, Aug 21, 2024 at 4:04 PM Daniel via Python-list < [email protected]> wrote: > > An example of use, here's a weather service tied to a finger. Put your > city name as the user. This isn't mine, but it is inspiring. Example: > > finger [email protected] >

RE: new here

2024-08-22 Thread AVI GROSS via Python-list
they were a tad tone deaf and did not seem to care if anyone objected. Let's keep this forum going. -Original Message- From: Python-list On Behalf Of Dan Sommers via Python-list Sent: Wednesday, August 21, 2024 4:57 AM To: [email protected] Subject: Re: new here On 2024-08-20 at

Re: new here

2024-08-25 Thread Marco Moock via Python-list
On 20.08.2024 um 23:26 Uhr Daniel wrote: > New here. I've perused some posts and haven't seen a posting FAQ for > this NG. I'm learning python right now to realize some hobby goals I > have regarding some smolnet services. What are the NG standards on > pasting code in messages? Do yall prefer I p

Re: new here

2024-08-25 Thread Keith Thompson via Python-list
Lawrence D'Oliveiro writes: > On 23 Aug 2024 03:43:15 GMT, rbowman wrote: >> I am confused by the cross-over to Python-list. I only read/post to >> comp.lang.python. Is that echoed to Python-list or vice versa? > > This has been happening, without asking our permission, for years. The comp.lang.p

RE: new here

2024-08-25 Thread AVI GROSS via Python-list
Message- From: Python-list On Behalf Of rbowman via Python-list Sent: Friday, August 23, 2024 1:22 AM To: [email protected] Subject: Re: new here On Fri, 23 Aug 2024 16:23:42 +1200, dn wrote: > Adding a display to the Pico-W is my next project... After that, gyros > (am thinking

Re: Is there a better way? [combining f-string, thousands separator, right align]

2024-08-25 Thread Pierre Fortin via Python-list
On Sun, 25 Aug 2024 15:12:20 GMT Gilmeh Serda via Python-list wrote: >Subject explains it, or ask. > >This is a bloody mess: > >>>> s = "123456789" # arrives as str >>>> f"{f'{int(s):,}': >20}" >' 123,456,789

Re: Is there a better way? [combining f-string, thousands separator, right align]

2024-08-25 Thread Pierre Fortin via Python-list
On Sun, 25 Aug 2024 15:12:20 GMT Gilmeh Serda via Python-list wrote: >Subject explains it, or ask. > >This is a bloody mess: > >>>> s = "123456789" # arrives as str >>>> f"{f'{int(s):,}': >20}" >' 123,456,789' > f"{s:>20}" -- https://mail.python.org/mailman/listinfo/python-list

RE: new here

2024-08-25 Thread AVI GROSS via Python-list
Thank you Michael. Embedded Controllers are something I personally have never had to deal with, except as an inviable part of things I use. But, yes, things like that when cheap enough, make plenty of sense. -Original Message- From: Python-list On Behalf Of MRAB via Python-list Sent

Re: Is there a better way? [combining f-string, thousands separator, right align]

2024-08-26 Thread Dan Sommers via Python-list
On 2024-08-26 at 20:42:32 +1200, dn via Python-list wrote: > and if we really want to go over-board: > > >>> RIGHT_JUSTIFIED = ">" > >>> THOUSANDS_SEPARATOR = "," > >>> s_format = F"{RIGHT_JUSTIFIED}{S_FIELD_WIDTH}{THO

Mocking a function in a process started with multiprocessing.Process

2024-08-27 Thread Norman Robins via Python-list
Is it possible to mock out a function in a process started with multiprocessing.Process? AI tells me it is, but I have not gotten it to work. The use case is that I have a server I want to write tests for. I want the tests to start up the server, but I need to mock out the JWT based auth functions

Re: Triggered By Mediocre Code (Posting On Python-List Prohibited)

2024-08-27 Thread Piergiorgio Sartor via Python-list
On 25/08/2024 23.53, Lawrence D'Oliveiro wrote: Looking at this article about the top three languages for getting programming jobs , naturally I couldn’t help noticing the code in the screenshot at th

Re: Formatting a str as a number

2024-08-27 Thread Grant Edwards via Python-list
On 2024-08-27, Gilmeh Serda via Python-list wrote: > On 25 Aug 2024 15:46:25 GMT, Stefan Ram wrote: > >> f"{int(number):>20,}" > > Great. Thanks. Do you have a link to where that's documented? > > I did web search, found nothing. https://docs.python.

Re: Script stops running with no error

2024-08-28 Thread Thomas Passin via Python-list
On 8/28/2024 5:09 PM, Daniel via Python-list wrote: As you all have seen on my intro post, I am in a project using Python (which I'm learning as I go) using the wikimedia API to pull data from wiktionary.org. I want to parse the json and output, for now, just the definition of the

Re: Script stops running with no error

2024-08-28 Thread Thomas Passin via Python-list
On 8/28/2024 8:07 PM, dn via Python-list wrote: On 29/08/24 10:32, Thomas Passin via Python-list wrote: On 8/28/2024 5:09 PM, Daniel via Python-list wrote: As you all have seen on my intro post, I am in a project using Python (which I'm learning as I go) using the wikimedia API to pull

Sanitise user input for a script

2024-08-30 Thread Simon Connah via Python-list
I need to write a script that will take some user input (supplied on a website) and then execute a Python script on a host via SSH. I'm curious what the best options are for protecting against malicious input in much the smae way as you sanitise SQL to protect against SQL injections. I could do

Re: Sanitise user input for a script

2024-08-30 Thread Simon Connah via Python-list
On Friday, 30 August 2024 at 21:23, Peter J. Holzer via Python-list wrote: > > > On 2024-08-30 19:18:29 +, Simon Connah via Python-list wrote: > > > I need to write a script that will take some user input (supplied on a > > website) and then execute a Python

Re: Sanitise user input for a script

2024-08-30 Thread Thomas Passin via Python-list
On 8/30/2024 3:18 PM, Simon Connah via Python-list wrote: I need to write a script that will take some user input (supplied on a website) and then execute a Python script on a host via SSH. I'm curious what the best options are for protecting against malicious input in much the smae way a

<    43   44   45   46   47   48   49   50   51   52   >