RE: Module urljoin does not appear to work with scheme Gemini

2025-04-24 Thread Anders Munch via Python-list
Henry S. Thompson wrote: > Some approach to support future-proofing in general would seem to be in > order. > Given some other precedents, adding a boolean argument called either 'strict' > or 'lax' would be my preference. An alternative would be to refactor urllib.parse to use strategy objects

Re: Module urljoin does not appear to work with scheme Gemini

2025-04-23 Thread Henry S. Thompson via Python-list
Schimon Jehudah writes: > Is there an "ignore" option for "urljoin" to allow schemes that are not > included in the registry of the interpreter of the Python computer > language? Some approach to support future-proofing in general would seem to be in order. Given some other precedents, adding a

Re: Module urljoin does not appear to work with scheme Gemini

2025-04-22 Thread Schimon Jehudah via Python-list
Is there an "ignore" option for "urljoin" to allow schemes that are not included in the registry of the interpreter of the Python computer language? I think that it is needed to have, even if it is not registered, as there are ongoing attempts to try to censor Gemini and Gopher. gemini://woodpeck

Re: Module urljoin does not appear to work with scheme Gemini

2025-04-22 Thread Henry S. Thompson via Python-list
Schimon Jehudah via Python-list writes: > Yesterday, I have added support for a new syndication format, Gemini > feed. I note that 'gemini' is not (yet?) a registered URI scheme: https://www.iana.org/assignments/uri-schemes/uri-schemes.xhtml ht -- Henry S. Thompson, School of Informat

Re: Pip installs to unexpected place

2025-04-21 Thread rbowman via Python-list
On Sat, 19 Apr 2025 15:56:16 -0400, Thomas Passin wrote: > My problem with venvs, especially if I have more than one, is that I > eventually forget what they were for and what is different about each > one. If there's only one and it's used for all non-system work, that's > OK but beyond that and

Re: Pip installs to unexpected place

2025-04-21 Thread songbird via Python-list
Peter J. Holzer wrote: > On 2025-04-18 13:08:36 -0400, Thomas Passin via Python-list wrote: ... >> When the system launches its application the PYTHONPATH will start with >> system site directories; local user site directories will be on the >> PYTHONPATH but since they come later, the python will

Re: Pip installs to unexpected place

2025-04-19 Thread Thomas Passin via Python-list
On 4/19/2025 4:56 AM, Peter J. Holzer via Python-list wrote: On 2025-04-18 13:08:36 -0400, Thomas Passin via Python-list wrote: On 4/18/2025 11:38 AM, Peter J. Holzer via Python-list wrote: On 2025-04-18 13:24:28 +1200, Greg Ewing via Python-list wrote: On 18/04/25 9:41 am, Mats Wichmann wrote

Re: Pip installs to unexpected place

2025-04-19 Thread Peter J. Holzer via Python-list
On 2025-04-18 13:08:36 -0400, Thomas Passin via Python-list wrote: > On 4/18/2025 11:38 AM, Peter J. Holzer via Python-list wrote: > > On 2025-04-18 13:24:28 +1200, Greg Ewing via Python-list wrote: > > > On 18/04/25 9:41 am, Mats Wichmann wrote: > > > > There's just not a really great answer to th

Re: Pip installs to unexpected place

2025-04-19 Thread Peter J. Holzer via Python-list
On 2025-04-18 17:11:33 +0100, Oscar Benjamin via Python-list wrote: > On Fri, 18 Apr 2025 at 16:50, Peter J. Holzer via Python-list > wrote: > > > > On 2025-04-18 13:24:28 +1200, Greg Ewing via Python-list wrote: > > > On 18/04/25 9:41 am, Mats Wichmann wrote: > > > > There's just not a really gre

Re: Pip installs to unexpected place

2025-04-18 Thread Thomas Passin via Python-list
On 4/18/2025 11:38 AM, Peter J. Holzer via Python-list wrote: On 2025-04-18 13:24:28 +1200, Greg Ewing via Python-list wrote: On 18/04/25 9:41 am, Mats Wichmann wrote: There's just not a really great answer to this. Seems to me a system-installed application shouldn't be looking in the user's

Re: Pip installs to unexpected place

2025-04-18 Thread Oscar Benjamin via Python-list
On Fri, 18 Apr 2025 at 16:50, Peter J. Holzer via Python-list wrote: > > On 2025-04-18 13:24:28 +1200, Greg Ewing via Python-list wrote: > > On 18/04/25 9:41 am, Mats Wichmann wrote: > > > There's just not a really great answer to this. > > > > Seems to me a system-installed application shouldn't

Re: Pip installs to unexpected place

2025-04-18 Thread Peter J. Holzer via Python-list
On 2025-04-18 13:24:28 +1200, Greg Ewing via Python-list wrote: > On 18/04/25 9:41 am, Mats Wichmann wrote: > > There's just not a really great answer to this. > > Seems to me a system-installed application shouldn't be looking in the > user's .local packages in the first place. That should only b

Re: Pip installs to unexpected place

2025-04-17 Thread Greg Ewing via Python-list
On 18/04/25 9:41 am, Mats Wichmann wrote: There's just not a really great answer to this. Seems to me a system-installed application shouldn't be looking in the user's .local packages in the first place. That should only be for things the user has installed "for this user". -- Greg -- https

Re: Pip installs to unexpected place

2025-04-17 Thread Mats Wichmann via Python-list
On 4/17/25 15:15, Grant Edwards via Python-list wrote: On 2025-04-17, Left Right via Python-list wrote: Also... when installing stuff with pip --user, it is always a package that is not installed for the system (usually not even available for the system). How can that "break system packages"?

Re: Pip installs to unexpected place

2025-04-17 Thread Grant Edwards via Python-list
On 2025-04-17, Left Right via Python-list wrote: >> Also... when installing stuff with pip --user, it is always a package >> that is not installed for the system (usually not even available for >> the system). How can that "break system packages"? > > pip installs dependencies. Dependencies may di

Re: Pip installs to unexpected place

2025-04-17 Thread Left Right via Python-list
> Also... when installing stuff with pip --user, it is always a package > that is not installed for the system (usually not even available for > the system). How can that "break system packages"? pip installs dependencies. Dependencies may disagree on the version with the system packages. This is

Re: Pip installs to unexpected place

2025-04-17 Thread Thomas Passin via Python-list
On 4/17/2025 4:58 AM, Roel Schroeven via Python-list wrote: Op 15/04/2025 om 20:31 schreef Mats Wichmann via Python-list: To be clear: you do not have to activate a virtualenv to use *Python* from it. If you just call the python by the path it's in, it figures everything out (and sets some vari

Re: Pip installs to unexpected place

2025-04-17 Thread Roel Schroeven via Python-list
Op 15/04/2025 om 20:31 schreef Mats Wichmann via Python-list: To be clear: you do not have to activate a virtualenv to use *Python* from it. If you just call the python by the path it's in, it figures everything out (and sets some variables you can query vi sysconfig if you have reason to actua

Re: Pip installs to unexpected place

2025-04-16 Thread Thomas Passin via Python-list
On 4/15/2025 5:38 PM, rbowman via Python-list wrote: On Tue, 15 Apr 2025 14:12:19 -0400, Thomas Passin wrote: On Linux, at least, it's standard for pip to install into the user's site-packages location if it's not invoked with admin privileges - even without --user. Pip will emit a message sayi

Re: Pip installs to unexpected place

2025-04-16 Thread rbowman via Python-list
On Tue, 15 Apr 2025 14:12:19 -0400, Thomas Passin wrote: > On Linux, at least, it's standard for pip to install into the user's > site-packages location if it's not invoked with admin privileges - even > without --user. Pip will emit a message saying so. Well, that used to be > true but nowadays P

Re: Pip installs to unexpected place

2025-04-16 Thread Grant Edwards via Python-list
On 2025-04-16, Mats Wichmann via Python-list wrote: > On 4/15/25 16:07, Grant Edwards via Python-list wrote: >> On 2025-04-15, Thomas Passin via Python-list wrote: >> >>> On Linux, at least, it's standard for pip to install into the user's >>> site-packages location if it's not invoked with admi

Re: Pip installs to unexpected place

2025-04-15 Thread Mats Wichmann via Python-list
On 4/15/25 16:07, Grant Edwards via Python-list wrote: On 2025-04-15, Thomas Passin via Python-list wrote: On Linux, at least, it's standard for pip to install into the user's site-packages location if it's not invoked with admin privileges - even without --user. Pip will emit a message saying

Re: Pip installs to unexpected place

2025-04-15 Thread Grant Edwards via Python-list
On 2025-04-15, Thomas Passin via Python-list wrote: > On Linux, at least, it's standard for pip to install into the user's > site-packages location if it's not invoked with admin privileges - even > without --user. Pip will emit a message saying so. Well, that used to be > true but nowadays Pi

Re: Pip installs to unexpected place

2025-04-15 Thread rbowman via Python-list
On Tue, 15 Apr 2025 18:43:43 +0200, Friedrich Romstedt wrote: > Many people put emphasis on that you need to *activate* a virtualenv > before using it, but no-one so far stressed the fact that you got Sphinx > installed to ~/jonathan/.local/lib/python3.13/site-packages *without > using *--user. T

Re: Pip installs to unexpected place

2025-04-15 Thread Thomas Passin via Python-list
On 4/15/2025 3:41 PM, dn via Python-list wrote: Various responses have been provided but the OP has not yet replied on- list (as verified by Archive). Is this an error with the list-processor or have some posts been sent to one person only (using Reply instead of ReplyList)? There are always

Re: Pip installs to unexpected place

2025-04-15 Thread Thomas Passin via Python-list
On 4/15/2025 12:43 PM, Friedrich Romstedt via Python-list wrote: Am Mo., 14. Apr. 2025 um 01:14 Uhr schrieb Jonathan Gossage via Python-list : I am using *Python 3.13* in a virtual environment under *Ubuntu Linux 24.04* . [...] Instead, it was installed into the site-packages directory in

Re: Pip installs to unexpected place

2025-04-15 Thread dn via Python-list
Various responses have been provided but the OP has not yet replied on-list (as verified by Archive). Is this an error with the list-processor or have some posts been sent to one person only (using Reply instead of ReplyList)? There are always others who would like to learn from list-discussio

Re: Pip installs to unexpected place

2025-04-15 Thread Mats Wichmann via Python-list
On 4/15/25 10:43, Friedrich Romstedt via Python-list wrote: Many people put emphasis on that you need to *activate* a virtualenv before using it, but no-one so far stressed the fact that you got Sphinx installed to ~/jonathan/.local/lib/python3.13/site-packages *without using *--user. To be clea

Re: Pip installs to unexpected place

2025-04-15 Thread Friedrich Romstedt via Python-list
Am Mo., 14. Apr. 2025 um 01:14 Uhr schrieb Jonathan Gossage via Python-list : > I am using *Python 3.13* in a virtual environment under *Ubuntu Linux > 24.04* > . > [...] > Instead, it was > installed into the site-packages directory in > */home/jonathan/.locals/lib/python3.13/site-packages* ev

Re: Pip installs to unexpected place

2025-04-15 Thread rbowman via Python-list
On Mon, 14 Apr 2025 15:20:13 -0700, Keith Thompson wrote: > Making the active script executable introdues the risk that you'll > accidentally execute it rather than sourcing it. If you do that, it > will probably set up the environment in a new shell process which then > immediately terminates.

Re: Pip installs to unexpected place

2025-04-15 Thread Keith Thompson via Python-list
rbowman writes: > On Mon, 14 Apr 2025 09:55:09 -0400, Thomas Passin wrote: >> Pip doesn't know about the environment it runs in. It seems to me that >> you didn't active the venv before you installed using pip. So nothing >> would have gotten installed into the venv. So where is the venv that you

Re: Pip installs to unexpected place

2025-04-14 Thread Thomas Passin via Python-list
On 4/14/2025 6:20 PM, Keith Thompson via Python-list wrote: Thomas Passin writes: [...] To activate a venv, you have to source its activate script, which is in the venv. First you have to mark it as executable. Then you source it - source ~/venv/gf4/bin/activate [...] No, you don't have to

Re: Pip installs to unexpected place

2025-04-14 Thread Thomas Passin via Python-list
On 4/14/2025 6:20 PM, Keith Thompson via Python-list wrote: Thomas Passin writes: [...] To activate a venv, you have to source its activate script, which is in the venv. First you have to mark it as executable. Then you source it - source ~/venv/gf4/bin/activate [...] No, you don't have to

Re: Pip installs to unexpected place

2025-04-14 Thread rbowman via Python-list
On Mon, 14 Apr 2025 09:55:09 -0400, Thomas Passin wrote: > Pip doesn't know about the environment it runs in. It seems to me that > you didn't active the venv before you installed using pip. So nothing > would have gotten installed into the venv. So where is the venv that you > set up? I usually p

Re: Pip installs to unexpected place

2025-04-14 Thread Keith Thompson via Python-list
Thomas Passin writes: [...] > To activate a venv, you have to source its activate script, which is > in the venv. First you have to mark it as executable. Then you source > it - > > source ~/venv/gf4/bin/activate [...] No, you don't have to (and probably shouldn't) mark the script as executable.

Re: Pip installs to unexpected place

2025-04-14 Thread Thomas Passin via Python-list
Please include the group in your response; don't just send it to me. On 4/14/2025 5:09 AM, Jonathan Gossage wrote: The virtual environment was owned by the user running pip. It was not owned by root. Does pip not support virtual environments that are owned by a non-root user and have a multi-us

Re: Pip installs to unexpected place

2025-04-14 Thread rbowman via Python-list
On Sun, 13 Apr 2025 19:10:47 -0400, Jonathan Gossage wrote: > The version of Python was compiled from source code and installed with > make altinstall. I attempted to use *pip* to install the *Sphinx* > package into the virtual environment using the command *pip install > sphinx* in the virtual en

Re: Pip installs to unexpected place

2025-04-13 Thread dn via Python-list
On 14/04/25 11:10, Jonathan Gossage via Python-list wrote: I am using *Python 3.13* in a virtual environment under *Ubuntu Linux 24.04* . The version of Python was compiled from source code and installed with make altinstall. I attempted to use *pip* to install the *Sphinx* package into the virtu

Re: Creating a framework for bots

2025-04-05 Thread Schimon Jehudah via Python-list
Good day. I am studynig decorators, and I am yet to understand how to create a dcorator for a function which is invoked upon an event. That is, the function depends upon an event from the event system of Slixmpp, and the external decorator should be invoked by it. gemini://woodpeckersnest.space/

Re: magic-wormhole 0.18.0

2025-03-13 Thread Neal Becker via Python-list
On Wed, Mar 12, 2025 at 8:33 PM meejah via Python-list < python-list@python.org> wrote: > Hello, > > I am happy to announce that magic-wormhole 0.18.0 has been released. > A visible change is the default display of QR Codes, following the > specification for file-transfer magic-wormhole codes. > T

Re: "Getting 'This app can’t run on your PC' (Access Denied) error when running Python or checking version in CMD on Windows 11"

2025-03-11 Thread Praveen Kumar via Python-list
Yes, I have 24.3.1 version of pip in my win 11 device, there is a new version of pip available, 25.0.1 Shall I upgrade that? Kind regards, Praveen On Mon, 10 Mar 2025, 03:04 Thomas Passin via Python-list, < python-list@python.org> wrote: > On 3/9/2025 3:16 PM, Gilmeh Serda via Python-list wrot

Re: "Getting 'This app can’t run on your PC' (Access Denied) error when running Python or checking version in CMD on Windows 11"

2025-03-11 Thread Praveen Kumar via Python-list
Is that an approved location for executables? May I know? What do you mean by approved location? Kind regards, Praveen On Mon, 10 Mar 2025, 01:25 Gilmeh Serda via Python-list, < python-list@python.org> wrote: > On Sat, 8 Mar 2025 15:59:51 +0530, Praveen Kumar wrote: > > > "C:\Users\Bharath\AppD

Re: "Getting 'This app can’t run on your PC' (Access Denied) error when running Python or checking version in CMD on Windows 11"

2025-03-10 Thread Praveen Kumar via Python-list
Hi Matt, I pointed out onething that related to the errors, what I pointed out is I just gone through the system 32 path in c drive and I found the python executive and other python files indicating 0 kb, and I deleted these exe, since these are seem to be corrupted to me, then after I tried runn

Re: "Getting 'This app can’t run on your PC' (Access Denied) error when running Python or checking version in CMD on Windows 11"

2025-03-10 Thread Mats Wichmann via Python-list
On 3/10/25 10:08, Praveen Kumar via Python-list wrote: Hi Matt, I pointed out onething that related to the errors, what I pointed out is I just gone through the system 32 path in c drive and I found the python executive and other python files indicating 0 kb, and I deleted these exe, since thes

Re: "Getting 'This app can’t run on your PC' (Access Denied) error when running Python or checking version in CMD on Windows 11"

2025-03-09 Thread Thomas Passin via Python-list
On 3/9/2025 3:16 PM, Gilmeh Serda via Python-list wrote: On Sat, 8 Mar 2025 15:59:51 +0530, Praveen Kumar wrote: "C:\Users\Bharath\AppData\Local\Programs\Python\Python313\python.exe" Is that an approved location for executables? Yes, that's where a python.org install normally goes. If you a

Re: "Getting 'This app can’t run on your PC' (Access Denied) error when running Python or checking version in CMD on Windows 11"

2025-03-09 Thread Praveen Kumar via Python-list
n\Python313\ > > > ***C: > > \Users\Bharath\AppData\Local\Programs\Python\Python313\Scripts\ > > > > > > * however, then after I tried running direct path execution > > in the cmd. > > > "C: > &

Re: "Getting 'This app can’t run on your PC' (Access Denied) error when running Python or checking version in CMD on Windows 11"

2025-03-09 Thread Thomas Passin via Python-list
x27;t work anyway. > > * Additionally I've checked windows apps interference whether it is causing > this error, and I saw a couple of python.exe files in this folder contains > 0KB size then I thought

Re: "Getting 'This app can’t run on your PC' (Access Denied) error when running Python or checking version in CMD on Windows 11"

2025-03-09 Thread Praveen Kumar via Python-list
* Additionally I've checked windows apps interference whether it is > causing > > this error, and I saw a couple of python.exe files in this folder > contains > > 0KB size then I thought these were corrupted and after I tried deleting > > these files, later I re-checked in

Re: "Getting 'This app can’t run on your PC' (Access Denied) error when running Python or checking version in CMD on Windows 11"

2025-03-08 Thread inhahe via Python-list
\python.exe" > --version, however it works well and it executed and showed the version, > but without file path, it won't work anyway. > > * Additionally I've checked windows apps interference whether it is causing > this error, and I saw a couple of python.exe files in this fol

Re: "Getting 'This app can’t run on your PC' (Access Denied) error when running Python or checking version in CMD on Windows 11"

2025-03-08 Thread Praveen Kumar via Python-list
h\AppData\Local\Programs\Python\Python313\python.exe" >> > --version, however it works well and it executed and showed the version, >> > but without file path, it won't work anyway. >> > >> > * Additionally I've checked windows apps interference whe

Re: "Getting 'This app can’t run on your PC' (Access Denied) error when running Python or checking version in CMD on Windows 11"

2025-03-08 Thread Thomas Passin via Python-list
s interference whether it is causing this error, and I saw a couple of python.exe files in this folder contains 0KB size then I thought these were corrupted and after I tried deleting these files, later I re-checked in cmd, however the issue persisted. refer to the following error for your furt

Re: Python recompile

2025-03-02 Thread Left Right via Python-list
I think Python compiles with fPIC by default. Something else had happened to the OPs checkout that caused these errors. OP needs to better describe what they were doing to properly understand the problem. On Sun, Mar 2, 2025 at 10:10 PM Lew Pitcher via Python-list wrote: > > > First off, this isn

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

2025-03-02 Thread Salvador Mirzo via Python-list
rbowman writes: > 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

Re: Python recompile

2025-03-02 Thread Lew Pitcher via Python-list
First off, this isn't really on-topic for comp.lang.c, as it is a question regarding a linker, interacting with the results of various options given to a specific compiler. However... On Sun, 02 Mar 2025 14:35:08 +, The Doctor wrote: > How do I compensate for > > ld: error: relocation R_

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

2025-03-02 Thread Salvador Mirzo via Python-list
Lawrence D'Oliveiro writes: > 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. That's quite right, which is why I also love to have an ebook form of them. -- https://mail.python.org/mai

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

  1   2   3   4   5   6   7   8   9   10   >