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 look

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

Pip installs to unexpected place

2025-04-13 Thread Jonathan Gossage via Python-list
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 virtual environment using the command *pip install sphinx* in the

Re: Pip installs to unexpected place

2025-04-14 Thread Thomas Passin via Python-list
; is at ~/venv/gf4. 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 Now when you run python (or more likely, python3), it will find the venv's directories be

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

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

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 reas

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

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

2025-04-24 Thread Anders Munch via Python-list
before I realised that the lists non_hierarchical, uses_query and uses_fragment are not used. With only three options instead of six, making a strategy object is not quite as attractive. But still worth considering. regards, Anders -- https://mail.python.org/mailman/listinfo/python-list

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

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 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 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/pyt

Re: Pip installs to unexpected place

2025-04-15 Thread Keith Thompson via Python-list
. So where is the venv that you >> set up? I usually put them into ~/venv. For example, a venv named "gf4" >> is at ~/venv/gf4. > > Are you sure about that? Sure about what? > activate has > > > VIRTUAL_ENV="/home/rbowman/wor

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 ha

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 ha

Re: Pip installs to unexpected place

2025-04-14 Thread Keith Thompson via Python-list
id */ -- https://mail.python.org/mailman/listinfo/python-list

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

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

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

Re: backslash in triple quoted string

2025-05-07 Thread Left Right via Python-list
r regular expression: re.compile(r"\d+\.\d+")). In a future Python version, SyntaxError will eventually be raised, instead of SyntaxWarning. (Contributed by Victor Stinner in gh-98401.) Found in: https://docs.python.org/3/whatsnew/3.12.html#other-language-changes It's not supposed to crash

Re: backslash in triple quoted string

2025-05-07 Thread Left Right via Python-list
Also, it appears that the change linked above is a lie: https://docs.python.org/3/reference/lexical_analysis.html#grammar-token-python-grammar-longstringitem According to the grammar, any character can follow backslash in a valid Python program. The warning / error raised by this code should not

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 th

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/97

Re: Python recompile

2025-03-02 Thread Lew Pitcher via Python-list
ndependant code, which your linker (apparently) requires for a specific type of relocation. [snip] HTH -- Lew Pitcher "In Skills We Trust" -- https://mail.python.org/mailman/listinfo/python-list

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

2025-03-02 Thread Salvador Mirzo via Python-list
d so on. Omg, I didn't know there were so many reasons... Funny is that the only real reason I really have for no reading on-screen is that I just don't want to. -- https://mail.python.org/mailman/listinfo/python-list

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

2025-03-02 Thread Salvador Mirzo via Python-list
them. -- https://mail.python.org/mailman/listinfo/python-list

Python recompile

2025-03-02 Thread The Doctor via Python-list
How do I compensate for ld: error: relocation R_X86_64_32 cannot be used against symbol '_PyRuntime'; recompile with -fPIC >>> defined in /usr/local/lib/libpython3.13.a(pylifecycle.o) >>> referenced by thread_pthread.h:138 (Python/thread_pthread.h:138

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

SQLObject 3.13.0

2025-03-07 Thread Oleg Broytman via Python-list
Hello! I'm pleased to announce version 3.13.0, the first release of branch 3.13 of SQLObject. What's new in SQLObject === Drivers --- * Extended default list of MySQL drivers to ``mysqldb``, ``mysqlclient``, ``mysql-connector``, ``mysql-connector-python``,

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
, > Sincerely, > Praveen Kumar > Mob: +91 9515531643 > > On Sun, 9 Mar 2025, 03:52 Thomas Passin via Python-list, < > [email protected]> wrote: > >> On 3/8/2025 5:29 AM, Praveen Kumar via Python-list wrote: >> > Hi Python community and members, >>

"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
Hi Python community and members, I hope this email finds you well, I want you to be assisted in resolving this following issue. kindly look at the below concern, """I’m running into an error where I get a 'This app can’t run on your PC' pop-up with (Access is Denied err

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
On 3/8/2025 5:29 AM, Praveen Kumar via Python-list wrote: Hi Python community and members, I hope this email finds you well, I want you to be assisted in resolving this following issue. kindly look at the below concern, """I’m running into an error where I get a 'This app

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
Passin via Python-list, < [email protected]> wrote: > On 3/8/2025 5:29 AM, Praveen Kumar via Python-list wrote: > > Hi Python community and members, > > > > I hope this email finds you well, I want you to be assisted in resolving > > this following issue. kindl

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
d been set for a local user but not for the system, you would see that behavior. The install from python.org should have installed the "py" launcher. Does that run? IOW, does typing "py" launch Python? Kind regards, Sincerely, Praveen Kumar Mob: +91 9515531643 On Sun, 9

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
If the path had been set for a local user but not for the system, you would see that behavior. The install from python.org should have installed the "py" launcher. Does that run? IOW, does typing "py" launch Python? Yes it does for both admin and non-admin cmd shells. But p

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 normal

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

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

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, < [email protected]> wrote: > On Sat, 8 Mar 2025 15:59:51 +0530, Praveen Kumar wrote: > > >

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, < [email protected]> wrote: > On 3/9/2025 3:16 PM, Gilmeh Serda via Py

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 < [email protected]> 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

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. > &

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

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

2025-02-20 Thread Salvador Mirzo via Python-list
fast. So I keep it > all online now. It's much more pleasurable (to me) to read books off-screen. -- https://mail.python.org/mailman/listinfo/python-list

Re: backslash in triple quoted string

2025-05-12 Thread Keith Thompson via Python-list
"lie" means to you, but I suggest that it explains the harsh reaction to your initial statement. -- Keith Thompson (The_Other_Keith) [email protected] void Void(void) { Void(); } /* The recursive call of the void */ -- https://mail.python.org/mailman/listinfo/python-list

Re: backslash in triple quoted string

2025-05-12 Thread Left Right via Python-list
> But the message doesn't say it's an error. It uses the word "warning", > not "error". You're tilting at a straw horse here. Read the associate release note. -- https://mail.python.org/mailman/listinfo/python-list

Re: backslash in triple quoted string

2025-05-12 Thread Left Right via Python-list
rd, you could at least try to find the irony, that was the larger goal, than to immediately presume you are being attacked, and start retaliating instead of looking into the problem. -- https://mail.python.org/mailman/listinfo/python-list

PyCon

2025-05-12 Thread Larry Martell via Python-list
Anyone going to PyCon? I'll be there, getting in Tuesday night. -- https://mail.python.org/mailman/listinfo/python-list

Re: backslash in triple quoted string

2025-05-11 Thread Chris Angelico via Python-list
On Mon, 12 May 2025 at 01:24, Left Right via Python-list wrote: > > But, sure, go ahead, foam at the mouth, if it > makes you feel better about it. Projecting, much? ChrisA -- https://mail.python.org/mailman/listinfo/python-list

Re: backslash in triple quoted string

2025-05-11 Thread Left Right via Python-list
Oh, so this is where 4chan relocated after they were hacked? What a refined discussion! On Sun, May 11, 2025 at 5:28 PM Chris Angelico wrote: > > On Mon, 12 May 2025 at 01:24, Left Right via Python-list > wrote: > > > > But, sure, go ahead, foam at the mouth, if it >

Re: backslash in triple quoted string

2025-05-11 Thread Left Right via Python-list
then. Prove it. You're all hot air and opinions and bluster. > Show some actual code, and show that you can do right what you're > complaining that Python has done wrong. > > I'm not holding my breath. > > ChrisA -- https://mail.python.org/mailman/listinfo/python-list

Re: backslash in triple quoted string

2025-05-11 Thread Left Right via Python-list
> Have you ever built a language parser? I've lost count by now. Probably fewer than hundred times though. -- https://mail.python.org/mailman/listinfo/python-list

Re: backslash in triple quoted string

2025-05-11 Thread Left Right via Python-list
Hahah... what a pile of rubbish. The point is that the error is wrong. It cannot be a syntax error and at the same time the program compiles. You need to choose one. But, sure, go ahead, foam at the mouth, if it makes you feel better about it. -- https://mail.python.org/mailman/listinfo/python

Re: backslash in triple quoted string

2025-05-11 Thread Left Right via Python-list
ly care. All it really proves is > that you have zero respect for anyone else. > > ChrisA -- https://mail.python.org/mailman/listinfo/python-list

Re: backslash in triple quoted string

2025-05-11 Thread Greg Ewing via Python-list
traw horse here. -- Greg -- https://mail.python.org/mailman/listinfo/python-list

Re: backslash in triple quoted string

2025-05-12 Thread Keith Thompson via Python-list
. It makes the discussion easier to follow, especially for those of us who read the comp.lang.python Usenet newsgroup rather than the mailing list. I do not intend to reply further. -- Keith Thompson (The_Other_Keith) [email protected] void Void(void) { Void(); } /* The recursive call of the void */ -- https://mail.python.org/mailman/listinfo/python-list

Re: backslash in triple quoted string

2025-05-12 Thread Greg Ewing via Python-list
On 13/05/25 6:28 am, Left Right wrote: Read the associate release note. I take it you're referring to this: In a future Python version, SyntaxError will eventually be raised, instead of SyntaxWarning. (Contributed by Victor Stinner in gh-98401.) That doesn't contradict w

Re: backslash in triple quoted string

2025-05-11 Thread Left Right via Python-list
words, the grammar author didn't put enough effort into making grammar actually work, but seeing how many other things are done in Python, this is not an exception. It would've been strange to have it done properly when "properly" means doing copious amounts of tedious work. On Sun,

Re: backslash in triple quoted string

2025-05-11 Thread Chris Angelico via Python-list
On Sun, 11 May 2025 at 20:38, Left Right via Python-list wrote: > > My comment was more of an irony really. It's plenty obvious that the > grammar is a lie. The reason is that it's tedious to put the actual > intender rules into the grammar, and so whoever wrote the gr

Re: backslash in triple quoted string

2025-05-11 Thread Richard Damon via Python-list
On 05/11/2025 6:36 AM EDT Left Right via Python-list <[1][email protected]> wrote: Then it just means that the grammar lies. The two claims are mutually exclusive, so either one is a lie or the other or both. No, it more points out that not all erro

Announcement: distlib 0.4.0 released on PyPI

2025-07-17 Thread Vinay Sajip via Python-list
to ``markers``. * Fix #238: Add build tag to wheel metadata if specified. * Fix #243: Update to support free-threading version of Python (3.13t). * Fix #246: Support subdirectories in the dist-info directory. Thanks to Pieter P for the patch. * Fix #248: Fix path normalization issue caused by

configparser get non-existent boolean

2025-06-30 Thread Rob Cliffe via Python-list
I was surprised to find that in configparser, getboolean() does not raise KeyError for a non-existent config parameter. Demo program (Python 3.11.5, Windows 11): import configparser config = configparser.ConfigParser() config.read('ThisFileDoesNotExist.ini') # This line could

Optimising constant expressions

2025-06-26 Thread Rob Cliffe via Python-list
I am using Python 3.13.3 on Windows 11. I notice that the compiler can optimise (some) constant expressions containing operators plus numbers or strings, e.g.     2+2 is compiled as 4     1 + (2.5 + 3+4j) is compiled as 6.5+4j     'a' + 'b' is compiled as 'ab'    

Searching for a file

2025-05-22 Thread Rob Cliffe via Python-list
It occurs to me that it might be useful if Python provided a function to search for a file with a given name in various directories (much as the import.import_lib function searches for a module in the directories in sys.path). This function would perhaps be best placed in the os.path or os

Re: Best practice for config files?

2025-05-22 Thread Rob Cliffe via Python-list
On 22/05/2025 23:45, Mats Wichmann wrote: On 5/22/25 13:59, Michael F. Stemper via Python-list wrote: I recently wrote a program to do some record-keeping for me. I found myself hard-coding a bunch of different values into it. This didn't seem right, so I made my first u

Re: Best practice for config files?

2025-05-22 Thread Grant Edwards via Python-list
but > this is unnecessarily complicated for many applications - have the > program look first on the command line for the config directory, > then for an environmental variable, then in those likely places. -- https://mail.python.org/mailman3//lists/python-list.python.org

Re: Searching for a file

2025-05-23 Thread Rob Cliffe via Python-list
On 23/05/2025 18:55, Mats Wichmann wrote: On 5/22/25 21:04, Rob Cliffe via Python-list wrote: It occurs to me that it might be useful if Python provided a function to search for a file with a given name in various directories (much as the import.import_lib function searches for a module in

Re: magic-wormhole 0.19.0

2025-06-01 Thread MyMilestone Card via Python-list
://mail.python.org/mailman3//lists/python-list.python.org

Re: PEP Idea: Extended import syntax for aliasing module attributes

2025-06-18 Thread Omar Ahmed via Python-list
The solution was provided in this thread here: https://discuss.python.org/t/extended-import-syntax-for-aliasing-module-attributes/95920/3 The correct way to implement is: import module from module import optimize, validate as check -- https://mail.python.org/mailman3//lists/python-list.python.org

Re: PEP Idea: Extended import syntax for aliasing module attributes

2025-06-18 Thread Omar Ahmed via Python-list
Thank you. I have posted this idea on https://discuss.python.org/c/ideas/6 I had difficulty trying to find that. -- https://mail.python.org/mailman3//lists/python-list.python.org

Re: PEP Idea: Extended import syntax for aliasing module attributes

2025-06-18 Thread Omar Ahmed via Python-list
Thank you. I have used this link. I had difficulty finding it. https://discuss.python.org/ -- https://mail.python.org/mailman3//lists/python-list.python.org

PEP Idea: Extended import syntax for aliasing module attributes

2025-06-16 Thread Omar Ahmed via Python-list
lman3//lists/python-list.python.org

Re: PEP Idea: Extended import syntax for aliasing module attributes

2025-06-16 Thread Rob Cliffe via Python-list
On 17/06/2025 00:19, Omar Ahmed via Python-list wrote: Hi all, I would like to propose a potential addition to Python's `import` syntax that would improve clarity and ergonomics for cases where developers want both full module access *and* a local alias to a specific attribute within

Re: PEP Idea: Extended import syntax for aliasing module attributes

2025-06-17 Thread Neal Becker via Python-list
On Tue, Jun 17, 2025 at 8:19 AM Barry Scott wrote: > > > > On 17 Jun 2025, at 00:19, Omar Ahmed via Python-list < > [email protected]> wrote: > > > > Hi all, > > I would like to propose a potential addition to Python's `import` syntax > that

Re: async I/O via threads is extremly slow (Was: Does Python Need Virtual Threads?)

2025-06-23 Thread Left Right via Python-list
reads from the equation? Also... I have no idea why Python needs async/await. It's a very confusing and unwieldy interface to epoll. I never found a practical reason to use this, unless in the situation where someone else used this in their library, and I had to use the library. All in all,

Re: What does stats = await asyncio.to_thread(os.stat, url) do? (Was async I/O via threads is extremly slow)

2025-06-23 Thread Inada Naoki via Python-list
Other languages uses thread pool, instead of creating new thread. In Python,loop.run_in_executor uses thread pool. https://docs.python.org/3.13/library/asyncio-eventloop.html#asyncio.loop.run_in_executor 2025年6月24日(火) 8:12 Mild Shock : > > So what does: > > stats = await async

Runtime detection of PEP 563

2025-06-22 Thread Ian Pilcher via Python-list
last case. -- If your user interface is intuitive in retrospect ... it isn't intuitive -- https://mail.python.org/mailman3//lists/python-list.python.org

Re: Searching for a file

2025-08-05 Thread Grant Edwards via Python-list
On 2025-08-05, Michael Torrie via Python-list wrote: > On 5/24/25 7:19 PM, Chris Angelico via Python-list wrote: >> On Sun, 25 May 2025 at 10:05, Rob Cliffe via Python-list >> wrote: >>> Yes, but if I understand correctly, they all start from a single >>>

Re: Searching for a file

2025-08-04 Thread Michael Torrie via Python-list
On 5/24/25 7:19 PM, Chris Angelico via Python-list wrote: > On Sun, 25 May 2025 at 10:05, Rob Cliffe via Python-list > wrote: >> Yes, but if I understand correctly, they all start from a single >> directory (and work downwards if required). >> My suggestion involved sear

Re: backslash in triple quoted string

2025-05-12 Thread Ethan Furman via Python-list
Chris and Oleg (sp?), please control your tempers; your latter posts added nothing useful to the conversation. (Apologies for the late reply, I was out of town.) -- ~Ethan~ Moderator -- https://mail.python.org/mailman/listinfo/python-list

Re: backslash in triple quoted string

2025-05-11 Thread Chris Angelico via Python-list
hat you can do right what you're complaining that Python has done wrong. I'm not holding my breath. ChrisA -- https://mail.python.org/mailman/listinfo/python-list

Re: backslash in triple quoted string

2025-05-11 Thread Chris Angelico via Python-list
to spell my name correctly. You can leave that there, I don't really care. All it really proves is that you have zero respect for anyone else. ChrisA -- https://mail.python.org/mailman/listinfo/python-list

Re: backslash in triple quoted string

2025-05-13 Thread Thomas Passin via Python-list
On 5/8/2025 2:05 AM, Left Right via Python-list wrote: Also, it appears that the change linked above is a lie: https://docs.python.org/3/reference/lexical_analysis.html#grammar-token-python-grammar-longstringitem According to the grammar, any character can follow backslash in a valid Python

IDLE: dark mode on windows?

2025-05-16 Thread T N via Python-list
tk config files somewhere. i would aprichiate any help on that. thanks a lot in advance, Tim from Hamburg -- https://mail.python.org/mailman/listinfo/python-list

WG: dont use C:\Windows as working directory when installed using microsoft store

2025-05-16 Thread T N via Python-list
Von: T N Gesendet: Samstag, 17. Mai 2025 04:33 An: [email protected] Betreff: dont use C:\Windows as working directory when installed using microsoft store Hi, ive installed python with IDLE using the microsoft store, but one big issue with it

Re: [egenix-info] ANN: eGenix Antispam Bot for Telegram 0.7.1

2025-05-14 Thread Schimon Jehudah via Python-list
e can always tune them or add new ones. > > Thanks, -- https://mail.python.org/mailman/listinfo/python-list

[ANN] New version 2.1.0 of L.Pointal's Python 3 Cheat Sheet

2025-05-14 Thread Laurent Pointal via Python-list
onnal programming map and filter list comprehension expressions * Add dict's | merge and |= update operators * Reorganize sequences index sectionto make room * Add with () group of context to open multiple files A+ L.Pointal. -- https://mail.python.org/mailman/listinfo/python-list

ANN: eGenix Antispam Bot for Telegram 0.7.1

2025-05-14 Thread eGenix Team via Python-list
-GA.html *INTRODUCTION* eGenix <https://egenix.com/> has long been running a local Python user group meeting in Düsseldorf called /Python Meeting Düsseldorf <https://pyddf.de/>/ and we are using a Telegram group for

Re: ANN: eGenix Antispam Bot for Telegram 0.7.1

2025-05-14 Thread Schimon Jehudah via Python-list
regards, Schimon On Wed, 14 May 2025 13:42:22 +0200 eGenix Team via Python-list wrote: > *ANNOUNCING* > > > eGenix Antispam Bot for Telegram > > Version 0.7.1 > > A simple, yet effective bot implementation > to address Telegram signup spam. > > This announce

Re: Dynamic classes

2025-05-20 Thread Left Right via Python-list
ion in ways that are difficult to accomplish using metaclasses and other complicated mechanisms Python language provides to that end. Eg. you can conditionally inherit from different superclasses (so, you can use this approach as a factory that creates different classes), or you can conditional

Re: WG: dont use C:\Windows as working directory when installed using microsoft store

2025-05-18 Thread Mats Wichmann via Python-list
On 5/18/25 08:39, Mike Dewhirst via Python-list wrote: Apologies for top-posting. It's my phone's fault.Since  no-one appears to have responded, I'll stir up some aggro and offer my opinion based on ~45 years experience with Microsoft.Uninstall python/idle etc completely and

Re: Trailer for upcoming Python documentary

2025-05-18 Thread Tim Daneliuk via Python-list
On 5/18/25 15:16, Larry Martell wrote: https://youtu.be/pqBqdNIPrbo?si=P2ukSXnDj3qy3HBJ Get ready Guido: "I'd like to thank the Academy ..." -- https://mail.python.org/mailman/listinfo/python-list

Re: Trailer for upcoming Python documentary

2025-05-19 Thread Christian Buhtz via Python-list
Am 18.05.2025 22:16 schrieb Larry Martell via Python-list: https://youtu.be/pqBqdNIPrbo?si=P2ukSXnDj3qy3HBJ Awesome! Which release channels will be used? How can we pay? -- https://mail.python.org/mailman/listinfo/python-list

Dynamic classes

2025-05-19 Thread Jonathan Gossage via Python-list
initializer. -- Jonathan Gossage -- https://mail.python.org/mailman/listinfo/python-list

Re: Dynamic classes

2025-05-19 Thread Mats Wichmann via Python-list
On 5/19/25 09:51, Jonathan Gossage via Python-list wrote: I have created a dynamic class using the type() function: x = type('MyFlags', (), {'Flag1': 1, 'Flag2': 2, 'Flag3: 4, ' '__init__' : __init__}) The new class is there, and the cla

Re: Dynamic classes

2025-05-19 Thread Thomas Passin via Python-list
On 5/19/2025 5:49 PM, Mats Wichmann via Python-list wrote: On 5/19/25 09:51, Jonathan Gossage via Python-list wrote: I have created a dynamic class using the type() function: x = type('MyFlags', (), {'Flag1': 1, 'Flag2': 2, 'Flag3: 4, ' '__init__&#

Re: Dynamic classes

2025-05-19 Thread Rob Cliffe via Python-list
On 19/05/2025 23:11, Thomas Passin via Python-list wrote: On 5/19/2025 5:49 PM, Mats Wichmann via Python-list wrote: On 5/19/25 09:51, Jonathan Gossage via Python-list wrote: I have created a dynamic class using the type() function: x = type('MyFlags', (), {'Flag1': 1, &

Re: Dynamic classes

2025-05-19 Thread Greg Ewing via Python-list
under the name 'Flag3: 4, __init__'. -- Greg -- https://mail.python.org/mailman/listinfo/python-list

RE: WG: dont use C:\Windows as working directory when installed using microsoft store

2025-05-18 Thread Mike Dewhirst via Python-list
Apologies for top-posting. It's my phone's fault.Since  no-one appears to have responded, I'll stir up some aggro and offer my opinion based on ~45 years experience with Microsoft.Uninstall python/idle etc completely and download from python.org instead. I would advise ignoring

<    58   59   60   61   62   63   64   65   66   67   >