Re: Best use of "open" context manager

2024-07-07 Thread Cameron Simpson via Python-list
ry/except. -- https://mail.python.org/mailman/listinfo/python-list

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
> This is even simpler than using a file. > Yes, but it's conceptually (and programming wise) much simpler to have separate scripts. Some of them are simple 'on demand' scripts that I run from the command line when I want to know something. Others are scripts that drive displays on control panels. -- Chris Green · -- https://mail.python.org/mailman/listinfo/python-list

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

2024-07-08 Thread Chris Green via Python-list
ns of characters that would be kept up to date by one process and asked for by all the others. -- Chris Green · -- https://mail.python.org/mailman/listinfo/python-list

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⁩ <⁨python-list@python.org⁩> > 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.or

Re: Best (simplest) way to share data

2024-07-11 Thread Chris Green via Python-list
s doing something (here: printing an incrementing value > named "info") and also serving requests from other processes > for this "info" value: > [snip] Thanks, that should get me started! :-) -- Chris Green · -- https://mail.python.org/mailman/listinfo/python-list

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: avi.e.gr...@gmail.com; '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
arious functions of the module. -- https://mail.python.org/mailman/listinfo/python-list

RE: Relatively prime integers in NumPy

2024-07-12 Thread AVI GROSS via Python-list
ry Yu via Python-list' ; oscar.j.benja...@gmail.com; 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: avi.e.gr...@gmail.com; 'Popov, Dmitry Yu via Python-list' ; oscar.j.benja...@gmail.com 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
pment and these releases possible! Please consider supporting our efforts by volunteering yourself or through organization contributions to the Python Software Foundation. Finally, regards from a confusingly hot and rainy Munich, Your release team, Thomas Wouters Łukasz Langa Ned Deily Steve Dower -- https://mail.python.org/mailman/listinfo/python-list

Issue with pip Installation on My Laptop

2024-07-26 Thread Lizna Shah via Python-list
s able to use pip successfully with previous versions of Python on this laptop. I would be grateful for any guidance or troubleshooting steps you could suggest to resolve this issue. Thank you. Best regards, Lizna Shah Nepal -- https://mail.python.org/mailman/listinfo/python-list

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
package at PyPi, or a fault at my pyproject.toml. This is the link to the project: https://git.xmpp-it.net/sch/Slixfeed#getting-started Please advise, Schimon -- https://mail.python.org/mailman/listinfo/python-list

Predicting an object over an pretrained model is not working

2024-07-30 Thread marc nicole via Python-list
259], [0.0, 0.0, 275.0, -325.0, 3.0997846126556396], [711.0, -231.0, -146.0, 392.0, 2.205275535583496]], 'diningtable': [[138.0, -310.0, 111.0, 448.0, 4.660728931427002], [317.0, -66.0, 313.0, 6.0, 4.535496234893799], [0.0, 0.0, -41.0, 175.0, 1.8571208715438843], [21.0, -92.0, 76.0, 172.0, 1.2035608291625977], [0.0, 0.0, 448.0, -250.0, 1.00322687625885]], 'car': [[312.0, 232.0, 132.0, 309.0, 3.205225706100464], [514.0, -76.0, 218.0, 448.0, 1.4289973974227905], [0.0, 0.0, 448.0, 142.0, 0.7124998569488525]]} WHile I expect only the dict to contain the small_ball key How's that is possible? where's the prediction output?How to fix the code? -- https://mail.python.org/mailman/listinfo/python-list

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 < python-list@python.org> 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, < python-list@python.org> 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
n.org/t/python-3-13-0-release-candidate-1-released/59703#p-181511-enjoy-the-new-releases-9>Enjoy the new releases Thanks to all of the many volunteers who help make Python Development and these releases possible! Please consider supporting our efforts by volunteering yourself or through organization contributions to the Python Software Foundation. Your release team, Thomas Wouters Łukasz Langa Ned Deily Steve Dower -- Thomas Wouters -- https://mail.python.org/mailman/listinfo/python-list

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
-671 -- https://mail.python.org/mailman/listinfo/python-list

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 < python-list@python.org> 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 < python-list@python.org> 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:m...@wichmann.us>> 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 < python-list@python.org> 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 < > python-list@python.org> 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
ling list digest. Piper McCorkle (https://piperswe.me) cont...@piperswe.me | +1 (508) 493-8615 -- https://mail.python.org/mailman/listinfo/python-list

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

2024-08-06 Thread Bill Deegan via Python-list
; all pathlib-compatible Zipfile object wrapper - > Python 3.x > rc python3.10-minimal 3.10.9-1 > amd64Minimal subset of the Python language (version > 3.10) > rc python3.10-venv3.10.9-1 > amd64Interactive high-level object-oriented language > (pyvenv binary, version 3.10) > ii python3.11 3.11.2-6+deb12u2 > amd64Interactive high-level object-oriented language > (version 3.11) > ii python3.11-dev 3.11.2-6+deb12u2 > amd64Header files and a static library for Python > (v3.11) > ii python3.11-doc 3.11.2-6+deb12u2 > all Documentation for the high-level object-oriented > language Python (v3.11) > ii python3.11-examples3.11.2-6+deb12u2 > all Examples for the Python language (v3.11) > ii python3.11-full3.11.2-6+deb12u2 > amd64Python Interpreter with complete class library > (version 3.11) > ii python3.11-minimal 3.11.2-6+deb12u2 > amd64Minimal subset of the Python language (version > 3.11) > ii python3.11-venv3.11.2-6+deb12u2 > amd64Interactive high-level object-oriented language > (pyvenv binary, version 3.11) > ii python3.9 3.9.13-1 > amd64Interactive high-level object-oriented language > (version 3.9) > ii python3.9-doc 3.9.13-1 > all Documentation for the high-level object-oriented > language Python (v3.9) > ii python3.9-minimal 3.9.13-1 > amd64Minimal subset of the Python language (version > 3.9) > rc python3.9-venv 3.9.13-1 > amd64Interactive high-level object-oriented language > (pyvenv binary, version 3.9) > > since there seems to be some doubt I included the whole list > > Regards > -- https://mail.python.org/mailman/listinfo/python-list

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 Development and these releases possible! Please consider supporting our efforts by volunteering yourself or through organization contributions to the Python Software Foundation. Your release team, Thomas Wouters Łukasz Langa Ned Deily Steve Dower -- Thomas Wouters -- https://mail.python.org/mailman/listinfo/python-list

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
from dbi import * ModuleNotFoundError: No module named 'dbi' Python 3 imports are absolute (they start from the top of the package tree and you have no `dbi` at the top). You want a relative import i.e.: from .dbi import * Cheers, Cameron Simpson -- https://mail.python.org/mailman/listinfo/python-list

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
/aka.ms/o0ukef> -- https://mail.python.org/mailman/listinfo/python-list

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
y-yrs -- Robin Becker -- https://mail.python.org/mailman/listinfo/python-list

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
uot; -- Keith Thompson (The_Other_Keith) keith.s.thompso...@gmail.com void Void(void) { Void(); } /* The recursive call of the void */ -- https://mail.python.org/mailman/listinfo/python-list

Re: troglodytes

2024-08-14 Thread Left Right via Python-list
you will. The primordial sense of justice, that was later developed into a bunch of different theories of how justice might work. -- https://mail.python.org/mailman/listinfo/python-list

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
thon in the last decade or so. -- https://mail.python.org/mailman/listinfo/python-list

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 < python-list@python.org> 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 mi...@graph.no >

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: python-list@python.org Subject: Re: new here On 2024-08-20 at

Re: new here

2024-08-25 Thread Marco Moock via Python-list
is really too long? -- kind regards Marco -- https://mail.python.org/mailman/listinfo/python-list

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 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: python-list@python.org 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
else: pytest.fail("Server did not start in time") @pytest.mark.usefixtures("start_server")@patch('dispatcher.main.validate_jwt')def test_function(mock_validate_jwt, mock_get_public_key): , . . When test_function runs the real validate_jwt runs, not my mock. -- https://mail.python.org/mailman/listinfo/python-list

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

2024-08-27 Thread Piergiorgio Sartor via Python-list
others :-) bye, -- piergiorgio -- https://mail.python.org/mailman/listinfo/python-list

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
ture.asc Description: OpenPGP digital signature -- https://mail.python.org/mailman/listinfo/python-list

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

Re: ListAdmin: Is list/archive working correctly?

2024-08-31 Thread Barry Scott via Python-list
> On 30 Aug 2024, at 23:28, dn via Python-list wrote: > > Me email (only) client shows a thread of 12 messages. > > The OP was @Gilmeh Serda (from an invalid email address). That appears in the > email thread > > @Stefan Ram has had two contributions quoted, but

Re: ListAdmin: Is list/archive working correctly?

2024-08-31 Thread Ethan Furman via Python-list
On 8/30/24 15:28, dn via Python-list wrote: > The OP was @Gilmeh Serda (from an invalid email address). That appears in the email thread > > @Stefan Ram has had two contributions quoted, but no such original-message has appeared in the thread. I can't speak about the archives,

Re: ListAdmin: Is list/archive working correctly?

2024-08-31 Thread Keith Thompson via Python-list
Ethan Furman writes: > On 8/30/24 15:28, dn via Python-list wrote: >> The OP was @Gilmeh Serda (from an invalid email address). That appears in >> the email thread >> >> @Stefan Ram has had two contributions quoted, but no such original-message >> has appeared

Re: Sanitise user input for a script

2024-08-30 Thread Simon Connah via Python-list
On Friday, 30 August 2024 at 23:35, Thomas Passin via Python-list wrote: > > > 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 scrip

Getting a Process.start() error pickle.PicklingError: Can't pickle : it's not found as __builtin__.module with Python 2.7

2024-09-02 Thread marc nicole via Python-list
PicklingError: Can't pickle : it's not found as __builtin__.module anybody could provide an alternative to call the function do_something() in a separate thread ? -- https://mail.python.org/mailman/listinfo/python-list

Re: Getting a Process.start() error pickle.PicklingError: Can't pickle : it's not found as __builtin__.module with Python 2.7

2024-09-02 Thread Barry Scott via Python-list
> On 2 Sep 2024, at 15:00, marc nicole via Python-list > wrote: > > I am using Python 2.7 on Windows 10 Why? Install Python 3.12 and it will be easier to get help and support. If you have legacy that still needs porting then you can install 3.12 along side the unsupported 3

Re: [Tutor] Getting a Process.start() error pickle.PicklingError: Can't pickle : it's not found as __builtin__.module with Python 2.7

2024-09-03 Thread marc nicole via Python-list
reading the console DID display the messages correctly! Thanks. Le mar. 3 sept. 2024 à 10:48, Alan Gauld via Tutor a écrit : > On 02/09/2024 15:00, marc nicole via Python-list wrote: > > Hello, > > > > I am using Python 2.7 on Windows 10 > > Others have pointed out th

Re: Python told me a Joke

2024-09-03 Thread Mild Shock via Python-list
this situation I wondered? So I tried: >>> x,2,z == [1,2,3] (1, 2, False) Now that made me laugh. - Alan [ Some people reading this will be tempted to explain what's really going on here -- it's not hard to understand. But please remember that a joke is never funny if you have to explain it. ] -- https://mail.python.org/mailman/listinfo/python-list

Python told me a Joke

2024-09-03 Thread Alan Bawden via Python-list
empted to explain what's really going on here -- it's not hard to understand. But please remember that a joke is never funny if you have to explain it. ] -- https://mail.python.org/mailman/listinfo/python-list

Re: Process.start

2024-09-03 Thread Keith Thompson via Python-list
imagine that it would be even more difficult for readers whose first language is not English. You also indent your own new text, which is exactly the opposite of common Usenet conventions. (You've been doing this for a long time.) Please consider prioritizing your readers' convenience over whatever benefit you derive from your unconventional posting style. -- Keith Thompson (The_Other_Keith) keith.s.thompso...@gmail.com void Void(void) { Void(); } /* The recursive call of the void */ -- https://mail.python.org/mailman/listinfo/python-list

Trouble with mocking

2024-09-03 Thread Norman Robins via Python-list
o_mock, mock_function2_to_mock def test_main(mock_dependencies): some_function() When some_function is called the real function1_to_mock is called instead of my mock. Can someone please let me know how to properly mock these 2 functions. Thanks! -- https://mail.python.org/mailman/listinfo/python-list

RE: [Tutor] Getting a Process.start() error pickle.PicklingError: Can't pickle : it's not found as __builtin__.module with Python 2.7

2024-09-03 Thread AVI GROSS via Python-list
tware or interest. -Original Message- From: Tutor On Behalf Of Alan Gauld via Tutor Sent: Tuesday, September 3, 2024 4:41 AM To: tu...@python.org Cc: python-list@python.org Subject: Re: [Tutor] Getting a Process.start() error pickle.PicklingError: Can't pickle : it's not found

Crash when launching python

2024-09-04 Thread Guenther Sohler via Python-list
fore crashes. Is it possible to turn on debugging and to display on the console, where python is loading files from ? Thank you -- https://mail.python.org/mailman/listinfo/python-list

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