Re: Book recommendation? For getting up to date (Posting On Python-List Prohibited)

2025-02-21 Thread rbowman via Python-list
On Thu, 20 Feb 2025 21:51:51 - (UTC), Lawrence D'Oliveiro wrote: > On Thu, 20 Feb 2025 10:05:32 -0300, Salvador Mirzo wrote: > >> It's much more pleasurable (to me) to read books off-screen. > > You can’t do searches, though. For non-fiction a decent index does wonders. A good layout and ta

Re: Book recommendation? For getting up to date (Posting On Python-List Prohibited)

2025-02-20 Thread Salvador Mirzo via Python-list
Lawrence D'Oliveiro writes: > On Wed, 19 Feb 2025 22:42:23 -0500, songbird wrote: > >> no need for me to print any programming books. > > I gave up on paper-based programming documentation a long time ago. There > is way too much of it that I need, and it changes too fast. So I keep it > all on

Re: Book recommendation? For getting up to date

2025-02-20 Thread songbird via Python-list
Mike wrote: ... > My current best collection for online quality open access Python Books > is on: > https://nocomplexity.com/documents/pythonbook/generatedfiles/overview.html#books > thanks! no need for me to print any programming books. some old textbooks are still useful, but many pr

Re: Book recommendation? For getting up to date

2025-02-19 Thread Mike via Python-list
thon libraries, but also in some great external libraries, most targeted for ML/data science things. Recently I re-ordered my collection on open access Python Book. I also was, and still am, searching for good quality books for 'professionals' that cover the latest developments goo

Re: Book recommendation? For getting up to date

2025-02-19 Thread Damien Wyart via Python-list
* Jan Erik Moström in comp.lang.python: > I'm looking for a book that would teach me the lastest and greatest > parts of Python, does anyone have any recommendations? Wider than that, but could still fit the bill: Fluent Python https://www.oreilly.com/library/view/fluent-python-2nd/9781492056348/

Re: Book recommendation? For getting up to date

2025-02-17 Thread Mats Wichmann via Python-list
On 2/16/25 18:40, Salvador Mirzo via Python-list wrote: Jan Erik Moström writes: On 16 Feb 2025, at 20:47, rbowman via Python-list wrote: David Beasley's 'Python Distilled'. The author doesn't enumerate Python 3 features specifically but as the title suggests hits the important concepts. T

Re: Book recommendation? For getting up to date

2025-02-16 Thread Salvador Mirzo via Python-list
Jan Erik Moström writes: > On 16 Feb 2025, at 20:47, rbowman via Python-list wrote: > >> David Beasley's 'Python Distilled'. The author doesn't enumerate Python 3 >> features specifically but as the title suggests hits the important >> concepts. > > Thanks, I'll take a look I can reinforce this

Re: Book recommendation? For getting up to date

2025-02-16 Thread rbowman via Python-list
On Mon, 17 Feb 2025 08:59:11 +1300, dn wrote: > - on Coursera am sad to advise avoiding U.Mich courses - they tend to be > re-worded Java (I think) content, don't follow PEP-008 and 'miss' Python > idioms The edx CS50 Python from Harvard is decent. It does start with t

Re: Book recommendation? For getting up to date

2025-02-16 Thread rbowman via Python-list
On Sun, 16 Feb 2025 22:00:11 +0100, Jan Erik Moström wrote: > I have done so ... to be really honest, it was when I couldn't remember > how to create an iterator for a class I was writing, that I realized > that I needed a refresher. Most of my Python was related to Esri's ArcGIS version. Up unti

Re: Book recommendation? For getting up to date

2025-02-16 Thread Jan Erik Moström via Python-list
On 16 Feb 2025, at 23:06, Thomas Passin via Python-list wrote: > I don't have a book for them but I think you should look into the (relatively > new) type annotation system, as well as asynchronized programming. The latter > is especially of interest because the older techniques have been remove

Re: Book recommendation? For getting up to date

2025-02-16 Thread Thomas Passin via Python-list
On 2/16/2025 4:00 PM, Jan Erik Moström via Python-list wrote: On 16 Feb 2025, at 20:59, dn via Python-list wrote: When stop to think about it, this is quite a request: don't give me what I do know, do give me what I don't know! 😜 That said, you are correct: the bulk of new publications seem

Re: Book recommendation? For getting up to date

2025-02-16 Thread Jan Erik Moström via Python-list
On 16 Feb 2025, at 20:59, dn via Python-list wrote: > When stop to think about it, this is quite a request: > don't give me what I do know, > do give me what I don't know! 😜 > That said, you are correct: the bulk of new publications seem to (still) aim > at the Beginner end of the continuum (se

Re: Book recommendation? For getting up to date

2025-02-16 Thread Jan Erik Moström via Python-list
On 16 Feb 2025, at 20:47, rbowman via Python-list wrote: > David Beasley's 'Python Distilled'. The author doesn't enumerate Python 3 > features specifically but as the title suggests hits the important > concepts. Thanks, I'll take a look = jem -- https://mail.python.org/mailman/listinfo/python

Re: Book recommendation? For getting up to date

2025-02-16 Thread rbowman via Python-list
On Sun, 16 Feb 2025 13:50:33 +0100, Jan Erik Moström wrote: > I used to be fairly good at Python, but I haven't done any serious > programming in the last 10 years or so. So I would like something that > got me up-to-date with the latest features. David Beasley's 'Python Distilled'. The author do

Re: Book recommendation? For getting up to date

2025-02-16 Thread dn via Python-list
points which don't immediately 'sink in'). You will find many examples on Coursera* and edX*. - on Coursera am sad to advise avoiding U.Mich courses - they tend to be re-worded Java (I think) content, don't follow PEP-008 and 'miss' Python idioms - disclaimer: my work uses the edX platform (not Python) -- Regards, =dn -- https://mail.python.org/mailman/listinfo/python-list

Re: Book recommendation? For getting up to date

2025-02-16 Thread Mats Wichmann via Python-list
On 2/16/25 05:50, Jan Erik Moström via Python-list wrote: I'm looking for a book that would teach me the lastest and greatest parts of Python, does anyone have any recommendations? I've looked at python.org and pythonbooks.org but I couldn't decide which one to get. I used to be fairly good a

Re: Version of OpenSSl ?

2025-02-10 Thread Chris Angelico via Python-list
On Tue, 11 Feb 2025 at 05:56, Grant Edwards via Python-list wrote: > The -dev packages also contain the man pages for the libraries. It > surprised me at first that the man pages weren't installed by the > "normal" lib packages. But, if you're not writing/building apps that > link with library X,

Re: Version of OpenSSl ?

2025-02-10 Thread Grant Edwards via Python-list
On 2025-02-10, Chris Angelico via Python-list wrote: > On Tue, 11 Feb 2025 at 04:04, Grant Edwards via Python-list > wrote: >> On 2025-02-09, Left Right via Python-list wrote: >> >>> You need the sources of the OpenSSL library, not the compiled library. >>> On Ubuntu, the packages with sources

Re: Version of OpenSSl ?

2025-02-10 Thread Chris Angelico via Python-list
On Tue, 11 Feb 2025 at 04:04, Grant Edwards via Python-list wrote: > > On 2025-02-09, Left Right via Python-list wrote: > > > You need the sources of the OpenSSL library, not the compiled library. > > On Ubuntu, the packages with sources are typically named xxx-dev where > > xxx is the package th

Re: Version of OpenSSl ?

2025-02-10 Thread Grant Edwards via Python-list
On 2025-02-09, Left Right via Python-list wrote: > You need the sources of the OpenSSL library, not the compiled library. > On Ubuntu, the packages with sources are typically named xxx-dev where > xxx is the package that provides the library. I don't have a Ubuntu > currently, but try looking for

Re: RE Version of OpenSSl ?

2025-02-09 Thread Keith Thompson via Python-list
vincent.vandevy...@oqapy.eu writes: >> In case this helps you find the correct package to install: >> >> $ python3 -c "if True: >> > import ssl >> > print('Ok.') >> > " >> Ok. >> >> $ cat /etc/lsb-release >> DISTRIB_ID=Ubuntu >> DISTRIB_RELEASE=24.04 >> DISTRIB_CODENAME=noble >> DISTRIB_D

Re: Version of OpenSSl ?

2025-02-09 Thread Keith Thompson via Python-list
vincent.vandevy...@oqapy.eu writes: > Hi, > > Trying to compile Python-3.12.9 on Ubuntu-24.04 > > The compilation is complete without errors but I have this message: > > The necessary bits to bu

Re: RE Version of OpenSSl ?

2025-02-09 Thread Left Right via Python-list
So, this is how I know where my SSL headers are found, for instance: ➜ cpython git:(3.12) gcc -I. -I./Include -H ./Modules/_ssl.c 2>&1 | grep evp.h .. /usr/include/openssl/evp.h (this was executed from the repository root). Can you see if you get something similar? Also... just for sanity chec

RE Version of OpenSSl ?

2025-02-09 Thread Vincent Vande Vyvre via Python-list
> > In case this helps you find the correct package to install: > > $ python3 -c "if True: > > import ssl > > print('Ok.') > > " > Ok. > > $ cat /etc/lsb-release > DISTRIB_ID=Ubuntu > DISTRIB_RELEASE=24.04 > DISTRIB_CODENAME=noble > DISTRIB_DESCRIPTION="Ubuntu 24.04.1 LTS" > > $ apt lis

Re: Version of OpenSSl ?

2025-02-09 Thread Jason Friedman via Python-list
> > Trying to compile Python-3.12.9 on Ubuntu-24.04 > > The compilation is complete without errors but I have this message: > > > The necessary bits to build these optional modules were not foun

RE Version of OpenSSl ?

2025-02-09 Thread Vincent Vande Vyvre via Python-list
> HI Vincent. > > You need the sources of the OpenSSL library, not the compiled library. > On Ubuntu, the packages with sources are typically named xxx-dev where > xxx is the package that provides the library. I don't have a Ubuntu > currently, but try looking for something like openssl-dev or > l

Re: Version of OpenSSl ?

2025-02-09 Thread Left Right via Python-list
HI Vincent. You need the sources of the OpenSSL library, not the compiled library. On Ubuntu, the packages with sources are typically named xxx-dev where xxx is the package that provides the library. I don't have a Ubuntu currently, but try looking for something like openssl-dev or libopenssl-dev

Re: [RELEASE] Python 3.13.2 and 3.12.9 now available!

2025-02-06 Thread Rust Buckett via Python-list
Thomas Wouters writes: > A small release day today! That is to say the releases are relatively > small; the day itself was of average size, as most days are. nice. -- this is my clever sig. -- https://mail.python.org/mailman/listinfo/python-list

Re: Any way to "subclass" typing.Annotated?

2025-01-31 Thread Fabien LUCE via Python-list
Maybe you'd better use descriptors? On Tue, 28 Jan 2025 at 23:03, Ian Pilcher via Python-list < python-list@python.org> wrote: > (Note: I have mail delivery disabled for this list and read it through > GMane. Please copy me on any responses, so that I can respond with > proper threading.) > >

Re: bool type have big problem. finally program returned "True".Is this the TRUE spec?

2025-01-20 Thread Alan Bawden via Python-list
あうぇくろ writes: tpr=composite(type,print) print(tpr('a')==tpr(1)) Why does tpr('a')==tpr(1) return True? Because tpr always returns the value None. -- https://mail.python.org/mailman/listinfo/python-list

Re: Strategies for avoiding having to use --break-system-packages with pip

2025-01-20 Thread Chris Green via Python-list
Peter J. Holzer wrote: > [-- text/plain, encoding quoted-printable, charset: us-ascii, 32 lines --] > > On 2025-01-14 11:32:35 +, Chris Green via Python-list wrote: > > Use a virtual environment, what do I have to do then to make using > > my program (that uses tkintertable) 'transpar

Re: Tools to help with text mode (i.e. non-GUI) input

2025-01-20 Thread Lele Gaifax via Python-list
Chris Green via Python-list writes: > I'm looking for Python packages that can help with text mode input, > i.e. for use with non-GUI programs that one runs from the command > prompt in a terminal window running a bash shell or some such. I'd suggest giving a try to https://pypi.org/project/ques

Re: Struggling to understand Callable type hinting

2025-01-18 Thread Ian Pilcher via Python-list
uld be a method (of the BufferScanner class), so its first positional argument should always be an instance of BufferScanner, but it could have any combination of positional and/or keyword arguments after that. Is it a typing problem? The def is not syntactically-correct (parentheses). Yes, but only when I

Re: Struggling to understand Callable type hinting

2025-01-17 Thread dn via Python-list
On 18/01/25 12:33, Ian Pilcher via Python-list wrote: I am making my first attempt to use type hinting in a new project, and I'm quickly hitting areas that I'm having trouble understanding.  One of them is how to write type hints for a method decorator. Here is an example that illustrates my con

Re: Strategies for avoiding having to use --break-system-packages with pip

2025-01-17 Thread Peter J. Holzer via Python-list
On 2025-01-14 11:32:35 +, Chris Green via Python-list wrote: > Use a virtual environment, what do I have to do then to make using > my program (that uses tkintertable) 'transparent', i.e. I just > want to be able to run the program from the command prompt like > any other progra

Re: Tools to help with text mode (i.e. non-GUI) input

2025-01-17 Thread Mats Wichmann via Python-list
On 1/17/25 12:03, Keith Thompson via Python-list wrote: Alan Gauld writes: On 15/01/2025 00:41, Keith Thompson via Python-list wrote: Alan Gauld writes: On 11/01/2025 14:28, Chris Green via Python-list wrote: I'm looking for Python packages that can help with text mode input, I haven't foll

Re: Tools to help with text mode (i.e. non-GUI) input

2025-01-17 Thread Grant Edwards via Python-list
On 2025-01-17, Alan Gauld via Python-list wrote: > On 15/01/2025 00:41, Keith Thompson via Python-list wrote: >> Alan Gauld writes: >>> On 11/01/2025 14:28, Chris Green via Python-list wrote: I'm looking for Python packages that can help with text mode input, >>> >>> The standard package for

Re: Tools to help with text mode (i.e. non-GUI) input

2025-01-17 Thread Keith Thompson via Python-list
Alan Gauld writes: > On 15/01/2025 00:41, Keith Thompson via Python-list wrote: >> Alan Gauld writes: >>> On 11/01/2025 14:28, Chris Green via Python-list wrote: I'm looking for Python packages that can help with text mode input, >>> >>> The standard package for this is curses which comes as

Re: Tools to help with text mode (i.e. non-GUI) input

2025-01-17 Thread Alan Gauld via Python-list
On 15/01/2025 00:41, Keith Thompson via Python-list wrote: > Alan Gauld writes: >> On 11/01/2025 14:28, Chris Green via Python-list wrote: >>> I'm looking for Python packages that can help with text mode input, >> >> The standard package for this is curses which comes as part >> of the standard li

Re: Tools to help with text mode (i.e. non-GUI) input

2025-01-17 Thread Keith Thompson via Python-list
Alan Gauld writes: > On 11/01/2025 14:28, Chris Green via Python-list wrote: >> I'm looking for Python packages that can help with text mode input, > > The standard package for this is curses which comes as part > of the standard library on *nix distros. The thing about curses (which may or may n

Re: Tools to help with text mode (i.e. non-GUI) input

2025-01-16 Thread Roel Schroeven via Python-list
Op 11/01/2025 om 15:28 schreef Chris Green via Python-list: I'm looking for Python packages that can help with text mode input, i.e. for use with non-GUI programs that one runs from the command prompt in a terminal window running a bash shell or some such. What I'm specifically after is a way to

Re: Tools to help with text mode (i.e. non-GUI) input

2025-01-15 Thread Alan Gauld via Python-list
On 15/01/2025 00:54, Grant Edwards via Python-list wrote: > are your friend. If that's not sophisticated enough the gnu "readline" > library with a simple command processor is a common next step. On that front the cmd module in Python is often overlooked but is useful for structuring a non-GUI-li

Re: Tools to help with text mode (i.e. non-GUI) input

2025-01-14 Thread Grant Edwards via Python-list
On 2025-01-14, Chris Green via Python-list wrote: > Yes, thanks all, maybe just straightforward curses is the way to go. > Looking at some of the 'cleverer' ones they end up looking remarkably > like GUI code, in which case I might as well use a GUI. The source code to configure and handle a UI

Re: Strategies for avoiding having to use --break-system-packages with pip

2025-01-14 Thread Left Right via Python-list
I wouldn't trust pip to install anything into my system. It's not a reliable program that I'd recommend anyone to use for things that they might depend on. My typical course of action is to create a virtual environment for the package I need. Install the package into that virtual environment usin

Re: Strategies for avoiding having to use --break-system-packages with pip

2025-01-14 Thread Thomas Passin via Python-list
On 1/14/2025 6:32 AM, Chris Green via Python-list wrote: I have a (relatively) clean Debian 12 installation running on my two workhorse systems, a desktop server at home and my laptop that travels around with me. I moved from Xubuntu to Debian on both these systems a few months ago. I ran Xubun

Re: Strategies for avoiding having to use --break-system-packages with pip

2025-01-14 Thread Christian Buhtz via Python-list
Hello Chris, I do have similar "problems" and still try to get used to the "new way". Other might correct me. I am not sure yet. To my current understanding the way to go is to install Python applications via "pipx". That make the application available in your system but also isolate it in it

Re: Strategies for avoiding having to use --break-system-packages with pip

2025-01-14 Thread Mats Wichmann via Python-list
On 1/14/25 04:32, Chris Green via Python-list wrote: I have a (relatively) clean Debian 12 installation running on my two workhorse systems, a desktop server at home and my laptop that travels around with me. I moved from Xubuntu to Debian on both these systems a few months ago. I ran Xubuntu f

Re: Installing Python-3.10.16

2025-01-14 Thread Mats Wichmann via Python-list
On 1/13/25 22:47, roc str via Python-list wrote: having a difficult time installing Python-3.10.16.tgz using the Python-3.20.0a2.exe installer. Please Advise Mario Ramos. Your question doesn't exactly make sense, but note this: Windows installers are not built for "security bugfix" releases.

Re: Tools to help with text mode (i.e. non-GUI) input

2025-01-14 Thread Chris Green via Python-list
Alan Gauld wrote: > On 14/01/2025 00:20, Grant Edwards via Python-list wrote: > > On 2025-01-13, Alan Gauld via Python-list wrote: > > > >> All of that is possible in curses, you just have to code it. > > > > All of that is easy with curses in C. Unfortunately, the high level > > "panel" and "

Re: Tools to help with text mode (i.e. non-GUI) input

2025-01-14 Thread Grant Edwards via Python-list
On 2025-01-14, Alan Gauld via Python-list wrote: > On 14/01/2025 00:20, Grant Edwards via Python-list wrote: >> On 2025-01-13, Alan Gauld via Python-list wrote: >> >>> All of that is possible in curses, you just have to code it. >> >> All of that is easy with curses in C. Unfortunately, the hi

Re: Tools to help with text mode (i.e. non-GUI) input

2025-01-14 Thread Alan Gauld via Python-list
On 14/01/2025 00:20, Grant Edwards via Python-list wrote: > On 2025-01-13, Alan Gauld via Python-list wrote: > >> All of that is possible in curses, you just have to code it. > > All of that is easy with curses in C. Unfortunately, the high level > "panel" and "menu" curses subystems that make

Re: Tools to help with text mode (i.e. non-GUI) input

2025-01-13 Thread Grant Edwards via Python-list
On 2025-01-13, Alan Gauld via Python-list wrote: > All of that is possible in curses, you just have to code it. All of that is easy with curses in C. Unfortunately, the high level "panel" and "menu" curses subystems that make it easy aren't included in the Python curses API, so doing it in Pyht

RE: Tools to help with text mode (i.e. non-GUI) input

2025-01-13 Thread Alan Gauld via Python-list
On 11/01/2025 14:28, Chris Green via Python-list wrote: > I'm looking for Python packages that can help with text mode input, The standard package for this is curses which comes as part of the standard library on *nix distros. > What I'm specifically after is a way to provide a default value that

Re: Complete working version of cython Queue example?

2025-01-13 Thread Thomas Passin via Python-list
On 1/13/2025 11:09 AM, Henry S. Thompson via Python-list wrote: I've spent several days trying to get this example [1] working, using Python3.11 and Cython 3.0.11 of Debian. I've copied the example files as carefully as I can, renamed some to avoid a name clash with the queue.py library, but the

Re: Complete working version of cython Queue example?

2025-01-13 Thread Henry S. Thompson via Python-list
[with link] Henry S. Thompson via Python-list writes: > I've spent several days trying to get this example [1] working, using > Python3.11 and Cython 3.0.11 of Debian. > > I've copied the example files as carefully as I can, renamed some to > avoid a name clash with the queue.py library, but the P

Re: Using pipx for packages as opposed to applications

2025-01-13 Thread Thomas Passin via Python-list
On 1/12/2025 7:11 AM, Chris Green via Python-list wrote: Stefan Ram wrote: Chris Green wrote or quoted: E.g. I want to install and use pksheet but, as it's not available from the Debian repositories, I'll have to install it from PyPi. I can't dig up any "pksheet" on PyPI. So, you got to

Re: Tools to help with text mode (i.e. non-GUI) input

2025-01-13 Thread Chris Green via Python-list
rustbuck...@nope.com wrote: > > This is what I was going to suggest. Rich is super easy to use. OK, thanks, Rich is on my shortlist then. -- Chris Green · -- https://mail.python.org/mailman/listinfo/python-list

Re: Using pipx for packages as opposed to applications

2025-01-13 Thread Chris Green via Python-list
Stefan Ram wrote: > Chris Green wrote or quoted: > >E.g. I want to install and use pksheet but, as it's not available from > >the Debian repositories, I'll have to install it from PyPi. > > I can't dig up any "pksheet" on PyPI. So, you got to take > my earlier response like a rumor from a ra

Re: Tools to help with text mode (i.e. non-GUI) input

2025-01-13 Thread rustbuckett--- via Python-list
This is what I was going to suggest. Rich is super easy to use. -- https://mail.python.org/mailman/listinfo/python-list

Re: Using pipx for packages as opposed to applications

2025-01-12 Thread Left Right via Python-list
What would be the intended use? If this is for other Debian users, then why not make a Debian package? If it's for yourself, why do you need to automate it? To be fair, I don't see a point in tools like pipx. Have never used it, and cannot imagine a scenario where I'd want to. It seems like th

Re: Tools to help with text mode (i.e. non-GUI) input

2025-01-11 Thread dn via Python-list
On 12/01/25 03:28, Chris Green via Python-list wrote: I'm looking for Python packages that can help with text mode input, i.e. for use with non-GUI programs that one runs from the command prompt in a terminal window running a bash shell or some such. What I'm specifically after is a way to provi

Re: subprocess.Popen does not launch audacity

2025-01-10 Thread Tim Johnson via Python-list
On 1/10/25 12:53, Thomas Passin via Python-list wrote: On 1/10/2025 4:00 PM, Tim Johnson via Python-list wrote: On 1/10/25 11:32, MRAB via Python-list wrote: ,,, snipped Below is the pertinent code:    Popen(choice, stdout=PIPE, stderr=PIPE,     stdin=PIPE, close_fds=True)

Re: subprocess.Popen does not launch audacity

2025-01-10 Thread Thomas Passin via Python-list
On 1/10/2025 4:00 PM, Tim Johnson via Python-list wrote: On 1/10/25 11:32, MRAB via Python-list wrote: ,,, snipped Below is the pertinent code:    Popen(choice, stdout=PIPE, stderr=PIPE,     stdin=PIPE, close_fds=True) My guess is my argument list is either insufficient or

Re: subprocess.Popen does not launch audacity

2025-01-10 Thread Left Right via Python-list
I just tried this: >>> import subprocess >>> subprocess.run('which audacity', shell=True) /usr/bin/audacity CompletedProcess(args='which audacity', returncode=0) >>> proc = subprocess.Popen('/usr/bin/audacity', stdout=subprocess.PIPE, stderr=subprocess.PIPE, stdin=subprocess.PI

Re: subprocess.Popen does not launch audacity

2025-01-10 Thread Tim Johnson via Python-list
On 1/10/25 11:32, MRAB via Python-list wrote: ,,, snipped Below is the pertinent code:    Popen(choice, stdout=PIPE, stderr=PIPE,     stdin=PIPE, close_fds=True) My guess is my argument list is either insufficient or an argument is causing the problem, but am unsure of which

Re: subprocess.Popen does not launch audacity

2025-01-10 Thread MRAB via Python-list
On 2025-01-10 19:15, Tim Johnson via Python-list wrote: Using Python 3.12.3 on Ubuntu 24.04 I've converted a legacy python2 script to python3. All went well. However, a glitch from python2 remains. The script uses dmenu to create menus to pick applications. Applications are then invoked from py

Re: Add the numbers in a 9x9 multiplication Table

2025-01-07 Thread Kaz Kylheku via Python-list
On 2025-01-03, HenHanna wrote: > On Thu, 2 Jan 2025 10:54:02 +, yeti wrote: > >> https://oeis.org/A000537 ? > > Sum of first n cubes; or n-th triangular number squared. > > 0, 1, 9, 36, 100, 225, 441, 784, 1296, 2025, 3025, 4356, 6084, 8281, > 11025, 14400, 18496, 23409, 29241, 36100, 44100, 5

Re: How to manage accented characters in mail header?

2025-01-06 Thread Peter J. Holzer via Python-list
On 2025-01-04 19:07:57 +, Chris Green via Python-list wrote: > Stefan Ram wrote: > > Chris Green wrote or quoted: > > >From: =?utf-8?B?U8OpYmFzdGllbiBDcmlnbm9u?= > > > Is there a simple[r] way to extract just the 'real' address between > the <>, that's all I actually need. I think it has t

Re: How to manage accented characters in mail header?

2025-01-06 Thread Peter Pearson via Python-list
On Sat, 4 Jan 2025 14:31:24 +, Chris Green wrote: > I have a Python script that filters my incoming E-Mail. It has been > working OK (with various updates and improvements) for many years. > > I now have a minor new problem when handling E-Mail with a From: that > has accented characters in i

Re: How to manage accented characters in mail header?

2025-01-06 Thread Chris Green via Python-list
Stefan Ram wrote: > Chris Green wrote or quoted: > >From: =?utf-8?B?U8OpYmFzdGllbiBDcmlnbm9u?= > > In Python, when you roll with decode_header from the email.header > module, it spits out a list of parts, where each part is like > a tuple of (decoded string, charset). To smash these decod

Re: it's a shame... python error over error

2025-01-03 Thread Chris Angelico via Python-list
On Sat, 4 Jan 2025 at 09:22, aotto1968 via Python-list wrote: > > On 30.12.24 18:29, Michael Torrie wrote: > > On 12/26/24 12:34 AM, aotto1968 via Python-list wrote: > >> sorry you don't understand the problem… > >> > >> > You managed to make a build of Python that attempts to link to a DLL > >>

Re: it's a shame... python error over error

2025-01-03 Thread aotto1968 via Python-list
On 30.12.24 18:29, Michael Torrie wrote: On 12/26/24 12:34 AM, aotto1968 via Python-list wrote: sorry you don't understand the problem… > You managed to make a build of Python that attempts to link to a DLL I never touch the OpenSUSE python. the OpenSUSE python try to use my sqalite3. The

Re: No module name mutagen

2025-01-01 Thread Tim Johnson via Python-list
On 12/31/24 15:00, Tim Johnson wrote: . Snipped I resolved this by extrapolating known paths of other non-distro pipx installs, and am back in business now. I'm taking lots of notes. For some reason, even after running updatedb, I had no luck finding with locate. I was not aware tha

Re: No module name mutagen

2025-01-01 Thread Peter J. Holzer via Python-list
On 2024-12-31 15:00:10 -0900, Tim Johnson via Python-list wrote: > being retired for ten years, I get my butt kicked by python dependencies > every time I upgrade ubuntu. (I'm newly on 24.04) now. > > Now, after three weeks on using the following code correctly: > > from mutagen import mp3, id3,

Re: No module name mutagen

2024-12-31 Thread Michael Torrie via Python-list
On Tue, Dec 31, 2024, 17:04 Tim Johnson via Python-list < python-list@python.org> wrote: > I am as of today, getting an import error for mutagen. Mutagen package > is installed at /root/.local/share/pipx/shared/lib/python3.12/site-packages > Pip-installed packages that go to /root/.local are onl

Re: No module name mutagen

2024-12-31 Thread Thomas Passin via Python-list
On 12/31/2024 7:00 PM, Tim Johnson via Python-list wrote: Please let me grumble for a minute : I've been using python since before 1. 5, when I could email Guido van Rossum directly with questions and on  at least one occasion we swapped stories about our cats. I put six kids though college wr

Re: Python List is Not Dead

2024-12-30 Thread Grant Edwards via Python-list
On 2024-12-27, Chris Green via Python-list wrote: > Cameron Simpson wrote: >> On 25Dec2024 14:52, Abdur-Rahmaan Janhangeer wrote: >> >I have been following discussions on Discourse (discuss.python.org) >> >these last times. >> > >> >I think that it definitely lacks some of the joys of the maili

Re: Python List is Not Dead

2024-12-30 Thread Erik Max Francis via Python-list
On 12/27/24 00:58, Chris Green via Python-list wrote: Yes, it's the one saving grace of a Discourse forum, you can use it by E-Mail and it behaves quite nicely with a text mode E-Mail client such as mutt so you can keep threads separate, follow sub-threads, etc. Not quite as good as this list g

Re: it's a shame... python error over error

2024-12-30 Thread Michael Torrie via Python-list
On 12/26/24 12:34 AM, aotto1968 via Python-list wrote: > sorry you don't understand the problem… > > > You managed to make a build of Python that attempts to link to a DLL > > I never touch the OpenSUSE python. the OpenSUSE python try to use my > sqalite3. The *only* mechanism that would cause

Re: it's a shame... python error over error

2024-12-29 Thread Chris Angelico via Python-list
On Mon, 30 Dec 2024 at 15:02, aotto1968 via Python-list wrote: > > You managed to make a build of Python that attempts to link to a DLL > > I never touch the OpenSUSE python. the OpenSUSE python try to use my > sqalite3. You keep saying this, but do you even know what "make install" does? Are y

Re: Python List is Not Dead

2024-12-29 Thread Chris Green via Python-list
Cameron Simpson wrote: > On 25Dec2024 14:52, Abdur-Rahmaan Janhangeer wrote: > >I have been following discussions on Discourse (discuss.python.org) > >these last times. > > > >I think that it definitely lacks some of the joys of the mailing list: > > FYI, it has a very good "mailing list" mode.

Re: it's a shame... python error over error

2024-12-29 Thread aotto1968 via Python-list
On 26.12.24 19:33, Michael Torrie wrote: On 12/25/24 10:46 PM, Chris Angelico wrote: Right. That's exactly what would happen if he'd built Python using absolute paths to libraries, which is the normal way to do it. And so the solution is to rebuild Python using absolute paths to libraries. You

Re: it's a shame... python error over error

2024-12-29 Thread aotto1968 via Python-list
On 26.12.24 04:55, Michael Torrie wrote: On 12/25/24 3:55 PM, Chris Angelico via Python-list wrote: On Thu, 26 Dec 2024 at 09:27, aotto1968 via Python-list wrote: It is not only an *usage* error it is also an *security* error because: 1) "cnf" is using OS python 2) os "root" python 3) using *

Re: it's a shame... python error over error

2024-12-29 Thread aotto1968 via Python-list
On 26.12.24 04:55, Michael Torrie wrote: On 12/25/24 3:55 PM, Chris Angelico via Python-list wrote: On Thu, 26 Dec 2024 at 09:27, aotto1968 via Python-list wrote: It is not only an *usage* error it is also an *security* error because: 1) "cnf" is using OS python 2) os "root" python 3) using *

Re: it's a shame... python error over error

2024-12-29 Thread aotto1968 via Python-list
On 26.12.24 06:46, Chris Angelico wrote: On Thu, 26 Dec 2024 at 14:57, Michael Torrie via Python-list wrote: On 12/25/24 3:55 PM, Chris Angelico via Python-list wrote: On Thu, 26 Dec 2024 at 09:27, aotto1968 via Python-list wrote: It is not only an *usage* error it is also an *security* err

Re: it's a shame... python error over error

2024-12-29 Thread aotto1968 via Python-list
On 25.12.24 23:55, Chris Angelico wrote: On Thu, 26 Dec 2024 at 09:27, aotto1968 via Python-list wrote: It is not only an *usage* error it is also an *security* error because: 1) "cnf" is using OS python 2) os "root" python 3) using **my** local non-root library Yes. And YOU were the one who

Re: Python List is Not Dead

2024-12-29 Thread Mats Wichmann via Python-list
On 12/29/24 15:10, Cameron Simpson via Python-list wrote: On 29Dec2024 07:16, Kevin M. Wilson wrote: Excuse please, my failure. As I have not been following this discussion, why is the subject "Python List Is NOT Dead" a subject for discussion? Has the list been moving towards closing? No, t

Re: Python List is Not Dead

2024-12-29 Thread Cameron Simpson via Python-list
On 29Dec2024 07:16, Kevin M. Wilson wrote: Excuse please, my failure. As I have not been following this discussion, why is the subject "Python List Is NOT Dead" a subject for discussion? Has the list been moving towards closing? No, the list's still around. But there was a significant migrat

Re: Python List is Not Dead

2024-12-28 Thread Kevin M. Wilson via Python-list
Excuse please, my failure. As I have not been following this discussion, why is the subject "Python List Is NOT Dead" a subject for discussion? Has the list been moving towards closing? KMW *** "When you pass through the waters, I will be with you:

Re: Python List is Not Dead

2024-12-28 Thread Mohammadreza Saveji via Python-list
thank you Mr. Jahangir. you are expert in python. On Fri, Dec 27, 2024 at 2:28 AM Cameron Simpson via Python-list < python-list@python.org> wrote: > On 25Dec2024 14:52, Abdur-Rahmaan Janhangeer wrote: > >I have been following discussions on Discourse (discuss.python.org) > >these last times. > >

Re: Python List is Not Dead

2024-12-26 Thread Cameron Simpson via Python-list
On 25Dec2024 14:52, Abdur-Rahmaan Janhangeer wrote: I have been following discussions on Discourse (discuss.python.org) these last times. I think that it definitely lacks some of the joys of the mailing list: FYI, it has a very good "mailing list" mode. I use it that was >90% of the time, a

Re: it's a shame... python error over error

2024-12-26 Thread Michael Torrie via Python-list
On 12/25/24 10:46 PM, Chris Angelico wrote: > Right. That's exactly what would happen if he'd built Python using > absolute paths to libraries, which is the normal way to do it. And so > the solution is to rebuild Python using absolute paths to libraries. You're right. Definitely appears to be a p

Re: Python List is Not Dead

2024-12-26 Thread dn via Python-list
On 25/12/24 23:52, Abdur-Rahmaan Janhangeer via Python-list wrote: Hey all, I have been following discussions on Discourse (discuss.python.org) these last times. I think that it definitely lacks some of the joys of the mailing list: 1/ Categories The discussion has fixed categories. No channe

Re: it's a shame... python error over error

2024-12-25 Thread Chris Angelico via Python-list
On Thu, 26 Dec 2024 at 14:57, Michael Torrie via Python-list wrote: > > On 12/25/24 3:55 PM, Chris Angelico via Python-list wrote: > > On Thu, 26 Dec 2024 at 09:27, aotto1968 via Python-list > > wrote: > >> It is not only an *usage* error it is also an *security* error because: > >> > >> 1) "cnf"

Re: it's a shame... python error over error

2024-12-25 Thread Michael Torrie via Python-list
On 12/25/24 8:55 PM, Michael Torrie wrote: > This is Python related, but > it's not necessarily python's fault per se. It's also a good reminder to use venv. Then there's no way of activating your custom python with its custom sqlite3 library unless you explicitly activate the venv. -- https://m

Re: it's a shame... python error over error

2024-12-25 Thread Michael Torrie via Python-list
On 12/25/24 3:55 PM, Chris Angelico via Python-list wrote: > On Thu, 26 Dec 2024 at 09:27, aotto1968 via Python-list > wrote: >> It is not only an *usage* error it is also an *security* error because: >> >> 1) "cnf" is using OS python >> 2) os "root" python >> 3) using **my** local non-root librar

Re: it's a shame... python error over error

2024-12-25 Thread Chris Angelico via Python-list
On Thu, 26 Dec 2024 at 09:27, aotto1968 via Python-list wrote: > It is not only an *usage* error it is also an *security* error because: > > 1) "cnf" is using OS python > 2) os "root" python > 3) using **my** local non-root library Yes. And YOU were the one who installed a new root Python. This i

Re: it's a shame... python error over error

2024-12-25 Thread aotto1968 via Python-list
On 25.12.24 12:05, aotto1968 wrote: I get angry… next python error… 1) The OpenSUSE command "cnf" checks if a special package feature is installed. 2) I recently compiled **my** SQLite3 library specifically tailored to **my** requirement and installed it in **my** SQLite3 project directory and

Re: it's a shame... python error over error

2024-12-25 Thread aotto1968 via Python-list
I get angry… next python error… 1) The OpenSUSE command "cnf" checks if a special package feature is installed. 2) I recently compiled **my** SQLite3 library specifically tailored to **my** requirement and installed it in **my** SQLite3 project directory and never changed the OpenSUSE installat

Re: How to go about describing my software with a component diagram?

2024-12-25 Thread dn via Python-list
On 25/12/24 10:05, marc nicole wrote: > I want to convey the idea that main.py (main algorithm) imports 3 > modules (V, S, M) (each of them containing .py scripts related to > different functionalities) and use their methods accordingly as per the > requirement: basically the structure of my code

  1   2   3   4   5   6   7   8   9   10   >