Slow shutdown using aioodbc pool

2026-04-23 Thread Rob Cliffe via Python-list
I amd using 32-bit Python 3.13 on Windows 11. I am writing a server that talks to a Pervasive database using asyncio and aioodbc. I run it from the command prompt. I notice it is very slow to shutdown (just over 3 seconds). Perhaps not important in real life use, but an irritation during

STCL interpreter

2026-04-22 Thread Walid AlMasri via Python-list
Dear All, I started a project on accommodating combinatory logic into python Below are my primary efforts https://github.com/mwalmasri/stcl_interpreter Best regards, Walid -- https://mail.python.org/mailman3//lists/python-list.python.org

Re: Python and PL/1

2026-04-22 Thread dn via Python-list
On 23/04/2026 11:22, MRAB wrote: On 22/04/2026 23:17, johnnyrebel0801--- via Python-list wrote: Hi, this is John Quinn and I'm new on this board. I live down in Ottawa, Illinois. I'm interested in learning Python so that I can apply it to help in modernizing mainframe legacy systems

Re: Python and PL/1

2026-04-22 Thread Rob Cliffe via Python-list
On 22/04/2026 23:17, johnnyrebel0801--- via Python-list wrote: Hi, this is John Quinn and I'm new on this board. I live down in Ottawa, Illinois. I'm interested in learning Python so that I can apply it to help in modernizing mainframe legacy systems. I worked as a PL/1 Applications

Python and PL/1

2026-04-22 Thread johnnyrebel0801--- via Python-list
Hi, this is John Quinn and I'm new on this board. I live down in Ottawa, Illinois. I'm interested in learning Python so that I can apply it to help in modernizing mainframe legacy systems. I worked as a PL/1 Applications Programmer at State Farm Systems for 13 years using IMS Databa

Re: Lazy Imports -- I Like This Idea

2026-04-14 Thread Jason H via Python-list
On 28/03/2026 04:59, DFS wrote: On 3/25/2026 9:40 PM, Lawrence D’Oliveiro wrote: So Python 3.15 will introduce a new, “lazy” import mechanism <https://peps.python.org/pep-0810/>. So far I have done one script where I moved an import into the function where it was used, instead of do

Re: Python linuxfs Modules

2026-04-08 Thread DFS via Python-list
On 3/17/2026 2:33 AM, Lawrence D’Oliveiro wrote: python_linuxfs <https://gitlab.com/ldo/python_linuxfs> is a set of Python modules providing higher-level wrappers around various Linux-specific system APIs. Some of these already have support in the “os” module in the standard Python librar

Re: os.scandir problem

2026-04-02 Thread Rob Cliffe via Python-list
Thanks all. For all variations:     R:    R:\\    R:/    and, if logged into the R drive,  R:. os.scandir returns the same error; pathlib.Path.walk returns an empty iterator. Best, Rob On 02/04/2026 08:09, dn via Python-list wrote: Rob, (apologies for delay - message stuck in queue) On 31/03

Re: os.scandir problem

2026-04-02 Thread dn via Python-list
Rob, (apologies for delay - message stuck in queue) On 31/03/2026 00:31, Rob Cliffe via Python-list wrote: I am using Python 3.13 and Windows 11. I have a RAM disk (ImDisk), configured to be the R: drive. When the RAM disc is empty,     os.scandir("R:") raises a FileNotFoundError

Hi, Mark, with clear explanation

2026-03-31 Thread Santhosh Pavan Kumar Malla via Python-list
PyMovie and PyOTE from IOTA require Anaconda Python 3.8+ (not system Python) on Windows, and the BAT files they generate must run from the Anaconda environment where Python is found—regular CMD won't locate it. The Microsoft Store redirect happens due to Windows app aliases; disable the

Re: os.scandir problem

2026-03-31 Thread Rob Cliffe via Python-list
often (always?) contain hidden files or directories. Best Rob Cliffe -- https://mail.python.org/mailman3//lists/python-list.python.org

Re: Configparser question

2026-03-30 Thread Gisle Vanem via Python-list
-- --gv -- https://mail.python.org/mailman3//lists/python-list.python.org

os.scandir problem

2026-03-30 Thread Rob Cliffe via Python-list
I am using Python 3.13 and Windows 11. I have a RAM disk (ImDisk), configured to be the R: drive. When the RAM disc is empty,     os.scandir("R:") raises a FileNotFoundError instead of (as I would have expected) returning an empty iterator. Whereas for an empty directory on a har

Configparser question

2026-03-30 Thread Gisle Vanem via Python-list
read_string (fixed_lines)' instead. But is there a simple way for all this? -- --gv -- https://mail.python.org/mailman3//lists/python-list.python.org

Re: Lazy Imports -- I Like This Idea

2026-03-28 Thread Oscar Benjamin via Python-list
On Sat, 28 Mar 2026 at 14:13, DFS via Python-list wrote: > > On 3/25/2026 9:40 PM, Lawrence D’Oliveiro wrote: > > > So Python 3.15 will introduce a new, “lazy” import mechanism > > <https://peps.python.org/pep-0810/>. > > > > So far I have done one

installing 3.10.9 to run old scripts on windows 11

2026-03-28 Thread Mark Mattson via Python-list
Hello python, I downloaded some python scripts pymovie and pyote from iota and followed instructions to get the older version of python to run on my windows 11 machine. If I run python from cmd line it jumps to a store window for python installation. If I hit start and run python from there it

Re: Lazy Imports -- I Like This Idea

2026-03-28 Thread Gregg Drennan via Python-list
ar 27, 2026, 4:33 PM Thomas Passin wrote: > On 3/27/2026 2:09 PM, Piergiorgio Sartor wrote: > > On 26/03/2026 02.40, Lawrence D’Oliveiro wrote: > >> So Python 3.15 will introduce a new, “lazy” import mechanism > >> <https://peps.python.org/pep-0810/>. > >> >

Re: Lazy Imports -- I Like This Idea

2026-03-28 Thread DFS via Python-list
On 3/25/2026 9:40 PM, Lawrence D’Oliveiro wrote: So Python 3.15 will introduce a new, “lazy” import mechanism <https://peps.python.org/pep-0810/>. So far I have done one script where I moved an import into the function where it was used, instead of doing it globally; this reduced the

Re: What does this "See help(type(self)) for accurate signature." actually mean?

2026-03-16 Thread Left Right via Python-list
ow you'll see it. And, in your specific case is meaningless, as you've got a perfectly detailed signature already. Traditionally, the arguments for constructor, in Python, used to be described in the doc string of the type, not the constructor. So, in case you request the help for the construc

Re: What does this "See help(type(self)) for accurate signature." actually mean?

2026-03-16 Thread Jon Ribbens via Python-list
On 2026-03-16, Stefan Ram wrote: > Jon Ribbens wrote or quoted: >> I don't know why it says "type(self)", >>because help(foo) where 'foo' is an instance of a class 'xyz' >>seems to display the same as help(xyz) a

Re: What does this "See help(type(self)) for accurate signature." actually mean?

2026-03-16 Thread Jon Ribbens via Python-list
regardless, it's all irrelevant in the case of your specific example gpiod.line_settings.LineSettings because as well as __init__ not having a docstring, the class itself doesn't have a docstring either. So there is nothing to display no matter what you type. -- https://mail.python.org/mailman3//lists/python-list.python.org

Re: Defeat Python "Virtual Environment" in Fedora ?

2026-03-15 Thread rbowman via Python-list
te a hot mess. I forget which of the C people said if he'd foreseen how macros would be abused they wouldn't have been included in the language. -- https://mail.python.org/mailman3//lists/python-list.python.org

Re: Defeat Python "Virtual Environment" in Fedora ?

2026-03-15 Thread Pancho via Python-list
just so I could spy on what they did. They wouldn't just tell me. If I was helpful they would ask me to do stuff, invest some time in explaining stuff to me. -- https://mail.python.org/mailman3//lists/python-list.python.org

Re: Noise with useless subjects (was: Python)

2026-03-11 Thread Michael Torrie via Python-list
. -- https://mail.python.org/mailman3//lists/python-list.python.org

Re: I always forget how to access information about classes and methods - how to do it?

2026-03-10 Thread Cynthia Marshal via Python-list
You can check classes and methods in Python by using the built-in introspection tools. dir(obj) shows the available attributes and methods, help(obj) shows the documentation for an object, and help(obj.method) shows details for one method. If you want to see the parameters of a callable

Re: Best approach for bulk DNS lookups in Python — socket vs dnspython vs asyncio

2026-03-10 Thread Cynthia Marshal via Python-list
results with https://dnsrobot.net/spf-checker is also a good way to spot-check SPF, DKIM, and DMARC output. -- https://mail.python.org/mailman3//lists/python-list.python.org

Re: Best approach for bulk DNS lookups in Python — socket vs dnspython vs asyncio

2026-03-06 Thread Left Right via Python-list
art to an external program s.a. dig is going to improve performance, since, in principle, the I/O is the most expensive part. Python is slow, but not slow enough to compete for the root cause of performance degradation here, so, might as well use it, if that's convenient to you. On

Re: Python

2026-03-05 Thread Chris Angelico via Python-list
ion ChrisA -- https://mail.python.org/mailman3//lists/python-list.python.org

Re: Python

2026-03-04 Thread o1bigtenor via Python-list
wo paired > >comments sometimes disagreed on what was being done or how it was done. > > > > A man with one clock knows what time it is. A man with two is never > quite sure... > -- Which is why a really smart person sets things to the 'offical clock' or has THREE of them (and logs their errors). -- https://mail.python.org/mailman3//lists/python-list.python.org

Re: Python

2026-03-04 Thread Jason Friedman via Python-list
> > The bad news? I knew enough German to be able to tell that the two paired > comments sometimes disagreed on what was being done or how it was done. > > That's pretty funny. -- https://mail.python.org/mailman3//lists/python-list.python.org

Re: Python

2026-03-04 Thread Michael F. Stemper via Python-list
mail.python.org/mailman3//lists/python-list.python.org

Re: Collaboration Inquiry: Open-Source ICU DNN (MIMIC-III/IV) — MedExACT / BioNLP ACL 2026

2026-03-02 Thread נתי שטרן via Python-list
conversation or async > exchange? > > 🔗 Repository: https://github.com/netanelcyber/penuX > 💬 Discussion: https://github.com/netanelcyber/penuX/discussions/11 > > Thank you for your time and for the foundational work your group has > contributed to clinical NLP. > >

Re: Win 10 > Win 11 path error?

2026-02-27 Thread Michael Torrie via Python-list
rst line above, and then immediately os.chdir(this_directory) which will make all open() calls relative to this_directory. -- https://mail.python.org/mailman3//lists/python-list.python.org

Re: Another issue between Win10 and Win 11 using python

2026-02-27 Thread Michael Torrie via Python-list
On 2/27/26 3:34 PM, Em wrote: > So, the answer is to hardwire the code, stopping it from > being portable, yes? That is one answer, yes. But as I said there are other options. -- https://mail.python.org/mailman3//lists/python-list.python.org

Hi New comer here !!

2026-02-27 Thread Fahamidur Rahaman via Python-list
Hi there, I am new to open source contributions. I have 4+ years of experience working in AI/ML space. However I want to help build the next python by contributing as well as increase my understanding of this language. Wish me luck!! -- https://mail.python.org/mailman3//lists/python

Re: Another issue between Win10 and Win 11 using python

2026-02-27 Thread Michael Torrie via Python-list
t; I now want to run the program in Win 11. > As in Win 10, F5 from an editor, it gives me the present path but when I > double-click on the program in the folder, it gives me some system path on > the C drive. I thought we went through all this with you in December where thought there was a

Re: Parsing XMPP URI

2026-02-24 Thread Schimon Jehudah via Python-list
Thomas. Good evening. I have posted a reference from RFC 4622. On Tue, 24 Feb 2026 09:51:18 -0500 Thomas Passin wrote: > On 2/24/2026 2:00 AM, Schimon Jehudah via Python-list wrote: > > Greetings. > > > > I am interested at advisory as to how to handle XMPP URI links.

Parsing XMPP URI

2026-02-23 Thread Schimon Jehudah via Python-list
Greetings. I am interested at advisory as to how to handle XMPP URI links. This is how module "urllib" handles this type of URI. urlparse from urllib.parse import urlparse urlparse("xmpp:pubsub.python.i2p?;node=xmpp-python-news") ParseResult( scheme='x

def __getitem__(self, key=None)

2026-02-08 Thread Lex via Python-list
def __getitem__(self, key=None): if key is None: return self.items[0] return self.items[key] myitemsobject[] -> item #0 or custom -- https://mail.python.org/mailman3//lists/python-list.python.org

Re: Get to know your files and folders!

2026-02-01 Thread Left Right via Python-list
ledge and understanding, and it's very rare that you can claim some total results, like X is faster than Y (in every possible situation). Think about it being as difficult as it is in math to find totality proofs (i.e. that P(x) for all X in (some large, usually infinite set)). Finally, retriev

Re: Get to know your files and folders!

2026-01-29 Thread Lulika Vith via Python-list
This looks like a very personal use case. I think that’s exactly the point of why scripting languages like Python have become so popular: they let anyone quickly and easily write a simple tool tailored to their own needs, improving their workflow. Even if such tools don’t necessarily help other

Re: Get to know your files and folders!

2026-01-29 Thread DFS via Python-list
On 1/27/2026 4:02 PM, Lawrence D’Oliveiro wrote: On Mon, 26 Jan 2026 13:28:24 -0500, DFS wrote: Here's some Python code I wrote to capture file metadata (name, location, date created, date modified, and size) in a SQLite database. I would consider this a waste of time. There are al

Python 3.14 asyncio and slixmpp

2026-01-20 Thread Schimon Jehudah via Python-list
s required). * self.loop.run_forever() * asyncio.get_event_loop().run_forever() https://slixmpp.readthedocs.io/en/latest/using_asyncio.html After updating to Python 3.14 version, the XMPP service fails to start. See attached error message. I tried several variations of different directives

Subject: Issue Opened on ICU Pneumonia AI Project – penuX

2026-01-15 Thread נתי שטרן via Python-list
Body: Hello Python enthusiasts, I’m working on penuX, a project focused on applying AI to clinical ICU data from patients diagnosed with pneumonia. As part of this competitive project, we’ve identified an issue affecting model performance and data processing, and we’ve opened a GitHub issue to

Considering "async" functions from PyProject directives

2026-01-13 Thread Schimon Jehudah via Python-list
Greetings. I have recently updated to Python 3.14 version. Change of code of async loop Now, in order to start an async task, I have to change this code. loop = asyncio.get_event_loop() loop.create_task(SlixfeedServiceIpc.server()) To this code. loop

Re: Preparing for GSoC 2026

2026-01-08 Thread נתי שטרן via Python-list
It’s *January 8, 2026*, Raghav. You have arrived at the perfect time. The Google Summer of Code (GSoC) 2026 cycle is officially kicking off *this month*. Since you are a 2nd-year student learning Python, Linux, and Git, you are in a "prime" position to secure a slot if you act now. He

Re: Preparing for GSoC 2026

2026-01-08 Thread נתי שטרן via Python-list
sting automation and Linux utilities, which aligns perfectly with your interest in Python and Linux. 1. Beginner-Friendly Paths in penuX If you are looking at the netanelcyber/penuX repo, here is how you should start: * The "Script to Tool" Transition: Many scripts in the repo are Python-b

Re: Preparing for GSoC 2026

2026-01-06 Thread נתי שטרן via Python-list
research-oriented Python project that predicts likely pathogens from patient vital signs (such as temperature, WBC, and SpO₂), producing ordered probability outputs rather than a single hard classification. The project already includes prediction scripts, tests, and CI, but the workflow is not yet

Re: Preparing for GSoC 2026

2026-01-06 Thread Karsten Hilbert via Python-list
Am Tue, Jan 06, 2026 at 06:52:10PM +0100 schrieb Karsten Hilbert via Python-list: > One worthwhile project might be to improve the GNUmed > package https://www.gnumed.de/documentation that is. Karsten -- GPG 40BE 5B0E C98E 1713 AFA6 5BC0 3BEA AC80 7D4F C89B --

Re: Preparing for GSoC 2026

2026-01-06 Thread Karsten Hilbert via Python-list
> My name is Raghav, I am a B.Tech,2nd year student from India currently > learning Python, Linux, and Git. I have recently joined this mailing list to > get familiar with the Python community and open-source contribution practices. > > I am preparing for Google Summer of Code

Preparing for GSoC 2026

2026-01-06 Thread Raghav Bhola via Python-list
Hello everyone, My name is Raghav, I am a B.Tech,2nd year student from India currently learning Python, Linux, and Git. I have recently joined this mailing list to get familiar with the Python community and open-source contribution practices. I am preparing for Google Summer of Code 2026 and

Re: Annoyance building python from source

2026-01-01 Thread Grant Edwards via Python-list
On 2025-12-31, Bill Deegan wrote: > On Mon, Dec 29, 2025 at 8:47 PM Keith Thompson wrote: > >> When I build Python from source, the "sudo make install" step >> creates root-owned files in the build directory. I have not seen >> this while building other open-

Re: Annoyance building python from source

2025-12-31 Thread Keith Thompson via Python-list
Keith Thompson writes: > When I build Python from source, the "sudo make install" step > creates root-owned files in the build directory. I have not seen > this while building other open-source packages from source. > > Is there a way to avoid this, so no root-owned

Re: Please use a meaningful subject to ease filtering and avoid polluting other humans mailboxes (was: Python)

2025-12-31 Thread Schimon Jehudah via Python-list
It would be also useful to gain interest and attention of a concern. Schimon On Wed, 31 Dec 2025 10:05:32 + [email protected] wrote: > Thanks. > > Am 31.12.2025 04:16 schrieb Lulika Vith via Python-list: > > Thank you for teaching me this practical Vim trick. In the past

Re: Python

2025-12-30 Thread Lulika Vith via Python-list
= line("'<") let l:end_line = line("'>") if l:start_line > l:end_line let l:tmp = l:start_line let l:start_line = l:end_line let l:end_line = l:tmp endif if &filetype ==# 'python' let l:begin = '""&q

Annoyance building python from source

2025-12-29 Thread Keith Thompson via Python-list
When I build Python from source, the "sudo make install" step creates root-owned files in the build directory. I have not seen this while building other open-source packages from source. Is there a way to avoid this, so no root-owned files are creates other than under the target in

Re: Challenging argparse with keyword dest="class"

2025-12-29 Thread Chris Angelico via Python-list
On Tue, 30 Dec 2025 at 01:57, Peter J. Holzer wrote: > > On 2025-12-29 22:50:41 +1100, Chris Angelico via Python-list wrote: > > On Mon, 29 Dec 2025 at 22:47, Peter J. Holzer wrote: > > > As for the error message, I agree that "SyntaxError: invalid syntax" is >

Re: Challenging argparse with keyword dest="class"

2025-12-29 Thread Schimon Jehudah via Python-list
Peter. Good afternoon. On Mon, 29 Dec 2025 10:54:33 +0100 "Peter J. Holzer" wrote: > On 2025-12-29 11:28:27 +0200, Schimon Jehudah via Python-list wrote: > > Greetings, one and all. > > > > I am experimenting with module argparse. > > > > I would

Re: Challenging argparse with keyword dest="class"

2025-12-29 Thread Schimon Jehudah via Python-list
This is also so with "import". VARIABLE.import Schimon On Mon, 29 Dec 2025 22:50:41 +1100 Chris Angelico via Python-list wrote: > On Mon, 29 Dec 2025 at 22:47, Peter J. Holzer > wrote: > > As for the error message, I agree that "SyntaxError: invalid > >

Re: Challenging argparse with keyword dest="class"

2025-12-29 Thread Chris Angelico via Python-list
On Mon, 29 Dec 2025 at 22:47, Peter J. Holzer wrote: > As for the error message, I agree that "SyntaxError: invalid syntax" is > a pretty uninformative message. Python error messages in general have > become very good over the last few years, so that feels like a bit of a >

Re: Challenging argparse with keyword dest="class"

2025-12-29 Thread Schimon Jehudah via Python-list
Chris and Lulika. Thank you for your help. Would not it be appropriate by argparse to deny (i.e. raise an error) attempts to allocate a reserved keyword as destnation (i.e. "dest")? Regards, Schimon -- https://mail.python.org/mailman3//lists/python-list.python.org

Re: Challenging argparse with keyword dest="class"

2025-12-29 Thread Lulika Vith via Python-list
Yes—the answer to the problem is right there in the question itself. Please avoid using Python reserved keywords such as class as identifiers. Your argparse code has in fact worked correctly: it successfully created an attribute named class on the args object, but you cannot access it using dot

Re: Challenging argparse with keyword dest="class"

2025-12-29 Thread Chris Angelico via Python-list
On Mon, 29 Dec 2025 at 20:40, Schimon Jehudah via Python-list wrote: > (Pdb) args.class > *** SyntaxError: invalid syntax > (Pdb) > You can use getattr(args, "class") if you like (this works for all objects). But it's probably easier to dodge the issue by changing the

Challenging argparse with keyword dest="class"

2025-12-29 Thread Schimon Jehudah via Python-list
Greetings, one and all. I am experimenting with module argparse. I would be glad to know of your opinions about this concern. Notice dest="class". Python software --- from argparse import ArgumentParser parser = ArgumentParser(description="Slixfeed OSTN new

Re: Python

2025-12-21 Thread Chris Angelico via Python-list
On Mon, 22 Dec 2025 at 03:19, Peter J. Holzer wrote: > > On 2025-12-21 23:59:48 +1100, Chris Angelico via Python-list wrote: > > On Sun, 21 Dec 2025 at 23:31, Peter J. Holzer wrote: > > > There is the concept of "pythonic" Code (just like there is a concept of

Re: Python

2025-12-21 Thread Chris Angelico via Python-list
On Sun, 21 Dec 2025 at 23:31, Peter J. Holzer wrote: > There is the concept of "pythonic" Code (just like there is a concept of > idiomatic code in (almost) any language), but if you ask 100 randomly > chosen Python programmers whether the use of += is pythonic, I doubt > th

AI Generated Usenet Client in Python

2025-12-19 Thread street--- via Python-list
AI Generated Usenet Client in Python If you have any improvements to this or helpful ideas I would like to see them. https://github.com/alt-magick/Newsgroup-Client-/ #!/usr/bin/env python3 import nntplib import sys import termios import tty import re import quopri import base64 from

[no subject]

2025-12-19 Thread Sartaj via Python-list
Can someone please guide me towards java mailing list? I want to know how javadoc commenting works. Due to some reasons I can't access browsers. -- https://mail.python.org/mailman3//lists/python-list.python.org

i3 (was: Python)

2025-12-19 Thread Axel Reichert via Python-list
lit toggle Since I do have window borders, the split direction will be visible (a light shade of blue border versus a subdued one. I am quite happy with it. You might give it a try. Best regards Axel -- https://mail.python.org/mailman3//lists/python-list.python.org

Re: Python

2025-12-18 Thread Alan Gauld via Python-list
https://mail.python.org/mailman3//lists/python-list.python.org

Re: Python

2025-12-18 Thread dn via Python-list
a form of (technical) documentation and a guide for use? If start from the spec/user story (perhaps as a README.md in tests/) and reproduce appropriate sections (as comments/docstrings, hah!) in each test file, then will all flow-through? -- Regards, =dn -- https://mail.python.org/ma

Re: Rock Paper Scissors Code Bug?

2025-12-18 Thread Gregg Drennan via Python-list
No chatbot involved. I was typing this on my phone in bed last night and didn't have a Python interpreter handy that I could verify this with. I will certainly check this. In any case, since verifying that a valid choice was made was made is done in the same IF statement as the check for

Re: Python

2025-12-17 Thread Chris Angelico via Python-list
On Thu, 18 Dec 2025 at 18:01, c186282 wrote: >Oh, I usually write "i=i+2". It's a bit more >clear and becomes the same code anyway. += >is more a 'C' thing. As are semicolons and /* */ comments. ChrisA -- https://mail.python.org/mailman3//lists/python-list.python.org

Re: Rock Paper Scissors Code Bug?

2025-12-17 Thread Gregg Drennan via Python-list
e print("Invalid choice...") else: If player_choice[0].lower() == "q": print("Thanks for playing. Good-bye.") break # code to score the choices, blah, blah, blah Good luck with your new version! On Mon, Dec 8, 20

Re: Python

2025-12-17 Thread Dan Espen via Python-list
Lawrence D’Oliveiro writes: > On Mon, 15 Dec 2025 12:57:57 +, mm0fmf wrote: > >> On 14 Dec 2025 11:56:42 GMT, Stéphane CARPENTIER wrote: >> >>> My issues with python are: >>> - It's using indentations, so when I comment a block of code to see >

Re: Python

2025-12-16 Thread Chris Angelico via Python-list
On Wed, 17 Dec 2025 at 10:33, Left Right via Python-list wrote: > No. Again. This is not your place. Not anyone else's to suggest users > switch their editor to anything else. What you do is just being a jerk > by not admitting the problem with Python and blaming it on the user.

Re: Python

2025-12-16 Thread Left Right via Python-list
> Well the fact is an editor that does not automate indenting blocks to > one degree or another will make Python much more difficult to learn and > use, and his experience with Python will not be positive. The editor > not making Python indenting easy to manage is in reality the

Re: Python

2025-12-16 Thread dn via Python-list
On 16/12/2025 21:12, Left Right via Python-list wrote: Nobody should be encouraged to change their editor. Neither do you know why the person chose the editor they chose, nor do you actually help in solving the problem the person has. Yes, starting from what the Learner knows, and moving

Re: Python

2025-12-16 Thread Michael Torrie via Python-list
On 12/16/25 1:12 AM, Left Right via Python-list wrote: > Nobody should be encouraged to change their editor. Neither do you > know why the person chose the editor they chose, nor do you actually > help in solving the problem the person has. Well the fact is an editor that does not

Issues compiling Python 3.14.2 on Rhel 8.10

2025-12-16 Thread Mads Boye via Python-list
Hi. I am currently facing issues compiling Python 3.14.2 on my RHEL 8 server. It seems to relate to the --enable-optimizations argument. If I build with out the --enable-optimizations it is finalizing the build, but with the argument, it segfaults during the "test_functools" ./con

Re: Python

2025-12-16 Thread Left Right via Python-list
Nobody should be encouraged to change their editor. Neither do you know why the person chose the editor they chose, nor do you actually help in solving the problem the person has. To try to answer to the substance of the complaint about indentation-driven structure: when Python was created, the

Re: Python

2025-12-15 Thread Greg Ewing via Python-list
Any decent programming editor will have a facility for selecting a group of lines and adding/removing the appropriate commenting characters. (If your editor doesn't have that, then by definition it's not decent. :-) -- https://mail.python.org/mailman3//lists/python-list.python.org

Re: Python

2025-12-15 Thread mm0fmf via Python-list
On 14/12/2025 23:29, Lawrence D’Oliveiro wrote: On 14 Dec 2025 11:56:42 GMT, Stéphane CARPENTIER wrote: My issues with python are: - It's using indentations, so when I comment a block of code to see ''' and ''' are your friend And maybe stop using edlin

Re: Rock Paper Scissors Code Bug?

2025-12-08 Thread John Smith via Python-list
Thanks for the recommendations. I'm building a whole new version based on the old one, with simpler code and functions to find win stats. -- https://mail.python.org/mailman3//lists/python-list.python.org

Re: Rock Paper Scissors Code Bug?

2025-12-08 Thread John Smith via Python-list
Thanks for the tip. I'll do that here and in future games. -- https://mail.python.org/mailman3//lists/python-list.python.org

Re: Rock Paper Scissors Code Bug?

2025-12-08 Thread Jason Friedman via Python-list
input("Welcome to Rock, Paper, Scissors. To begin, choose Rock, Paper, or Scissors. ") if player_choice == ROCK: break if player_choice == PAPER: break if player_choice == SCISSORS: ... The advantage of this approach is misspellings generate compilation errors, which are easier to catch and fix. -- https://mail.python.org/mailman3//lists/python-list.python.org

Re: Rock Paper Scissors Code Bug?

2025-12-08 Thread via Python-list
Ah! Found it. I had an extra space in "Rock". Thanks for the help! -- https://mail.python.org/mailman3//lists/python-list.python.org

Re: Rock Paper Scissors Code Bug?

2025-12-08 Thread Chris Angelico via Python-list
On Tue, 9 Dec 2025 at 05:29, via Python-list wrote: > > I coded Rock, Paper, Scissors. I added the randomness, made it loop at the > user's request, added win code, no problems there. I changed some strings to > F-strings to practice using them, and now the first "elif&quo

Rock Paper Scissors Code Bug?

2025-12-08 Thread via Python-list
t;) print(f"Choice: {choice}") print(f"You played: {player_choice}") playagain = True while playagain == True: ask_repeat = input("Play again? Y/N ") if ask_repeat == "Y": print("Restarting... ") repeat = True playagain = False elif ask_repeat == "N": repeat = False playagain = False print("Goodbye.") else: playagain = True repeat = False print("Error. Input either Y or N. Capitalize and retry.") -- https://mail.python.org/mailman3//lists/python-list.python.org

Re: A switch somewhere, or bug? CORRECTION

2025-12-07 Thread Michael Torrie via Python-list
On 12/7/25 3:03 AM, Em wrote: > So, is this a change from WIN10? Maybe. It could be a change in the pylauncher. Or a change in how Windows starts pylauncher. It could be a difference between the versino of Python Microsoft puts in the store vs the python.org package. It could be a change in

Re: A switch somewhere, or bug? CORRECTION

2025-12-07 Thread Michael Torrie via Python-list
in. > Irrespective of anything else that's going on, that's not my experience. > I just tried, and double-clicking a python script makes the directory > that I have open in Explorer the current directory. I've seen the same > not just with scripts but also with executa

Re: What is the tool used here?

2025-12-07 Thread Alan Gauld via Python-list
at: http://www.flickr.com/photos/alangauldphotos -- https://mail.python.org/mailman3//lists/python-list.python.org

Re: What is the tool used here?

2025-12-07 Thread Grant Edwards via Python-list
ng posts via gmane So I use a custom hacked inews replacement that e-mails posts to this list instead of sending them via NNTP/gmane like it does for all of the more friendly lists. https://slrn.info/ https://github.com/GrantEdwards/hybrid-inews -- Grant -- https://mail.python.org/mailman3//lists/python-list.python.org

Re: A switch somewhere, or bug? CORRECTION

2025-12-07 Thread Sibylle Koczian via Python-list
Hello, Am 07.12.2025 um 15:36 schrieb Em: -Original Message- From: Roel Schroeven Sent: Sunday, December 7, 2025 7:23 AM To: [email protected] Subject: Re: A switch somewhere, or bug? CORRECTION Op 7/12/2025 om 1:54 schreef Thomas Passin: As I explained in my last post, that&#

Re: A switch somewhere, or bug?

2025-12-06 Thread Pierre Fortin via Python-list
On Thu, 4 Dec 2025 11:06:21 -0500 Em wrote: >Two computers, both alike in dignity, in fair windows land... > >in Win10/Python 3.13 my program runs as well as can be expected. However, on >my new computer Win11/Python 3.14.1 there is a peculiarity. > >On the new machine, when I

Re: A switch somewhere, or bug? CORRECTION

2025-12-05 Thread Chris Angelico via Python-list
On Sat, 6 Dec 2025 at 18:22, Michael Torrie wrote: > > On Sat, Dec 6, 2025, 00:04 Chris Angelico wrote: >> >> On Sat, 6 Dec 2025 at 15:52, Michael Torrie via Python-list >> wrote: >> > >> > On 12/5/25 6:36 PM, Chris Angelico via Python-list wrote: &

Re: A switch somewhere, or bug? CORRECTION

2025-12-05 Thread Michael Torrie via Python-list
On Sat, Dec 6, 2025, 00:04 Chris Angelico wrote: > On Sat, 6 Dec 2025 at 15:52, Michael Torrie via Python-list > wrote: > > > > On 12/5/25 6:36 PM, Chris Angelico via Python-list wrote: > > > On Sat, 6 Dec 2025 at 12:33, Michael Torrie via Python-list > >

Re: A switch somewhere, or bug? CORRECTION

2025-12-05 Thread Chris Angelico via Python-list
On Sat, 6 Dec 2025 at 15:52, Michael Torrie via Python-list wrote: > > On 12/5/25 6:36 PM, Chris Angelico via Python-list wrote: > > On Sat, 6 Dec 2025 at 12:33, Michael Torrie via Python-list > > wrote: > >> Starter = open("HLYlog.txt","w"); >

Re: A switch somewhere, or bug? CORRECTION

2025-12-05 Thread Michael Torrie via Python-list
On 12/5/25 6:36 PM, Chris Angelico via Python-list wrote: > On Sat, 6 Dec 2025 at 12:33, Michael Torrie via Python-list > wrote: >> Starter = open("HLYlog.txt","w"); >> filepath = Starter.name > > Isn't that just... > > filepath = "H

Re: A switch somewhere, or bug? CORRECTION

2025-12-05 Thread Chris Angelico via Python-list
On Sat, 6 Dec 2025 at 12:33, Michael Torrie via Python-list wrote: > Starter = open("HLYlog.txt","w"); > filepath = Starter.name Isn't that just... filepath = "HLYlog.txt" ? ChrisA -- https://mail.python.org/mailman3//lists/python-list.python.org

  1   2   3   4   5   6   7   8   9   10   >