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
Thanks for the tip. I'll do that here and in future games.
--
https://mail.python.org/mailman3//lists/python-list.python.org
>
>
> 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" in my if loop
> (player chooses rock, bot chooses paper) doesn't work. Any hel
Ah! Found it. I had an extra space in "Rock". Thanks for the help!
--
https://mail.python.org/mailman3//lists/python-list.python.org
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
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" in my if loop
(player chooses rock, bot chooses paper) doesn't work. Any help ideas?
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 how
On 12/7/25 5:22 AM, Roel Schroeven wrote:
> Op 7/12/2025 om 1:54 schreef Thomas Passin:
>> As I explained in my last post, that's because in Windows 11 when
>> double-clicking, the working directory is the system's Windows
>> directory, not the one your program is in.
> Irrespective of anything e
On 07/12/2025 16:25, Em wrote:
> I see >, >>, and >>>, attached at the beginning of lines in messages. I
> doubt that they are placed manually and wonder how they are placed
> automatically. How do I get said program?
I use Thunderbird and it provide the same feature.
You are not limited to > sy
On 2025-12-07, Em wrote:
> I see >, >>, and >>>, attached at the beginning of lines in messages. I
> doubt that they are placed manually and wonder how they are placed
> automatically. How do I get said program?
I use slrn and emacs. [Just emerge both of them.]
Then I point slrn at the gmane
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
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 click on the file na
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:
&
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
> >
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");
>
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
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
On 12/5/25 5:12 PM, Em wrote:
> Ok, using "Open with Python" , the program fails on both computers.
> Still, double-click the filename on the WIN10 computer and the program
> works.
> While, double-click the filename on the WIN11 computer and the program
> fails.
Here's a test script for you that
On 12/4/25 10:47 PM, Em wrote:
>> Starter = open("HLYlog.txt", "w")
>>
>> Thoughts appreciated.
>
> -That's a relative path. Are you sure that the current working directory is
> what
> -you expect? It's generally better to work with absolute paths.
>
> Relative or not, I can't see how that could
Qt's documentation is quite good. Here are the official python Qt docs
on the subject of slots in Qt 6 (PySide2):
https://doc.qt.io/qtforpython-6/tutorials/basictutorial/signals_and_slots.html
In short you decorate them with @Slot(params) where params are a list of
the Qt types your slot is expec
On 04/12/2025 18:25, Em wrote:
> 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 click on the file name, it immediately dumps out.
What exactly does "dumps out" mean? A blu
incidents as the message says..
Footnote:
Fifteen plus Fifteen is thirty.
Sixteen and Sixteen is thirty too.
-Original Message-
From: dn via Python-list
Sent: Thursday, December 4, 2025 1:30 PM
To: [email protected]
Subject: Re: A switch somewhere, or bug?
On 05/12/2025 05:06, Em wrote
On 05/12/2025 05:06, 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 click on the file name, it immediately
I wonder nobody mentioned the dedicated PyQt mailing list:
https://riverbankcomputing.com/support/lists
Mainly PyQt6, but I don't think questions about older versions are
forbidden.
--
https://mail.python.org/mailman3//lists/python-list.python.org
On Wed, 3 Dec 2025 at 07:41, Rich Shepard wrote:
>
> I'm learning PyQt5 and will have questions now and then when I can't find
> answers in Fitzpatrick's book or in a web search. There are several web fora
> for Qt and PyQt support but I much prefer maillists where threads are pushed
> to me and I
Richard Damon wrote:
> On 11/25/25 3:42 PM, bjotta via Python-list wrote:
> > It seem like you are talking about classes and sub-classes. I was talking
> > about dependencies in projects.
> > The technique is currently defined only for class and sub-classes, but
> coul
On 01/12/2025 22:40, [email protected] wrote:
I have installed Python on two Win10 computers over the last 20 years. Only
after several spits and starts each time did it finally work. The new Win11
desktop is now running. I can't help but think there is an easier way to get it
installed than
I agree that some of my reasoning was off and it does not directly with the
issue of sub-dependencies.
However, the Idea was more on how to hide it rather than the dependency issue
itself.
Anyways, I agree that an approach on name mangling might be more in line with
what we have in python.
Ho
On 11/25/25 1:42 PM, bjotta via Python-list wrote:
> I want to be able to restrict / name mangle the usage.
> To avoid this being possible.
>
> '''
> from library.math import np.
> '''
Fascinating. I would never have thought to do an import like th
I tried explaining it further down in the thread
--
https://mail.python.org/mailman3//lists/python-list.python.org
It seem like you are talking about classes and sub-classes. I was talking about
dependencies in projects.
e..g I create a library that has some dependencies (numpy here)
Inside the library there is a file importing numpy for example.
'''
import numpy as np
def stock_earnings(winnings, losses):
Hi, this is my first time here on the mailing list.
I would like to open up for a discussion on how we can introduce a way to hide
imports.
I am proposing the introduction of an optional, non-breaking keyword, private,
to be used when importing a file. The goal is to allow developer to hide
in
-Rahmaan Janhangeer
wrote:
>
> You have some demo code for it?
>
>
> Kind Regards,
>
> Abdur-Rahmaan Janhangeer
> about | blog
> github
> Mauritius
>
> On Mon, 10 Nov 2025, 07:18 Mingye Wang via Python-list,
> wrote:
>>
>> Zipapp is meant to
Den 2025-11-14 skrev Stefan Ram :
> Martin =?UTF-8?Q?Sch=C3=B6=C3=B6n?= wrote or quoted:
>>If I try to specify a python version I don't get a new environment. The
>>error message I get is:
>>"The following packages are missing from the target environment:
>> - python=3.10"
>> (if I asked for ver
On 2025-11-16, Pokemon Chw via Python-list wrote:
> On Linux AF_UNIX + SOCK_STREAM sockets, there is a quirk in how the
> kernel handles control messages with SCM_RIGHTS:
>
> To successfully pass file descriptors via SCM_RIGHTS, you must send
> at least one byte of normal d
You have some demo code for it?
Kind Regards,
Abdur-Rahmaan Janhangeer
about <https://compileralchemy.github.io/> | blog
<https://compileralchemy.substack.com/>
github <https://github.com/Abdur-RahmaanJ>
Mauritius
On Mon, 10 Nov 2025, 07:18 Mingye Wang via Python-list, <
p
Den 2025-11-13 skrev Loris Bennett :
Hi Loris,
Thanks for quick respons.
> Martin Schöön writes:
>
>>
>> I want to create a new environment using a specific python version
>> rather than leaving that to conda. Cheat-sheets and online conda
>> documentation tell me to use:
>>
>> conda create -n
About two years ago I moved from pip to conda. I have been happy with
conda until yesterday.
I want to create a new environment using a specific python version
rather than leaving that to conda. Cheat-sheets and online conda
documentation tell me to use:
conda create -n python=
like:
conda cr
Zipapp is meant to produce things that will be delivered to an end-user. In
this way it should behave like most packaging tools and offer more "thorough"
compression options, limited only by the version of the Python interpreter on
the user's side (more specifically, their zipfile modules). As a
Loris Bennett wrote:
> "Loris Bennett" writes:
>
>> Hi,
>>
>> I am writing a program for the command-line which uses 'argsparse'. I
>> want to make some options mandatory by setting 'required=True', but
>> still allow the program to run with the option '--version' (which just
>> shows the versio
On 10/24/25 4:38 AM, Alan Bawden wrote:
> Paul Rubin writes:
>
>Lawrence D’Oliveiro writes:
>> >>> "%#0.3x" % 2
>> '0x002'
>
>f'0x{2:03x}
>
> Won't work for negative numbers.
That's true. For negative numbers the padding would have to be Fs
instead of 0s.
--
https:/
On 10/22/25 7:14 PM, Chris Angelico via Python-list wrote:
> And that's why it's so frustrating when someone bases their entire
> argument on an AI's nonsense. If the OP had simply posted it as a
> request, with no hallucinated claims, it would have been a
> straight-fo
On Thu, 23 Oct 2025 at 12:01, Michael Torrie via Python-list
wrote:
>
> On 10/19/25 12:38 PM, Chris Angelico via Python-list wrote:
> > The entire premise of your post was flat-out wrong. Your data was
> > nothing but hallucinations, and there is nothing to discuss. I'
On 10/19/25 12:38 PM, Chris Angelico via Python-list wrote:
> The entire premise of your post was flat-out wrong. Your data was
> nothing but hallucinations, and there is nothing to discuss. I'm not
> even going to bother reading further, because every post you've
> writt
On Mon, 20 Oct 2025 at 02:01, wrote:
>
> Thanks again for your detailed reply — I really appreciate it. I have to
> admit, I wasn’t 100% sure about my data, which is why I submitted it for
> discussion before opening a bug report to the Python developers.
>
Don't. Don't open a discussion based
On Sun, 19 Oct 2025 at 11:03, wrote:
>
> Thanks Chris for the response!
>
> As The Unicode Standard does define an uppercase form for the German sharp S
> (U+00DF → U+1E9E), and this has been part of Unicode since version 5.1
> (2008), with the German orthography officially adopting it in 2017.
On 06/09/2025 17:21, MRAB wrote:
On 2025-09-06 13:47, Rob Cliffe via Python-list wrote:
I quite often find myself writing expressions of the form
someString[x : x+n]
where n is often an int and x may be an int, a variable, or a (possibly
complicated) expression.
It would be more natural
Hello friends,
Can I know what’s going on?! Please
في سبت، 18 أكتوبر، 2025 في 7:11 ص، كتب Chris Angelico via Python-list <
[email protected]>:
> On Sat, 18 Oct 2025 at 13:44, wrote:
> >
> > Dear Python Developers,
> >
> > I would like to bring attenti
On Oct 7, 2025, at 13:14, Abdur-Rahmaan Janhangeer via Python-list
wrote:
>
> Very sad ... At least as Steve Dower suggested even if we could get an
> email from Discourse or something.
I too will miss these announcements. I understand not having to post things to
multiple pl
Note: we also announce CPython releases at
https://discuss.python.org/tag/release and https://blog.python.org, and
are planning on only announcing at those places in the future, and not on
this mailing list. See
https://discuss.python.org/t/cpython-release-announcements/103924/1
Please see https:/
Am Wed, Oct 08, 2025 at 10:51:42AM +0200 schrieb Jean-François Bachelet via
Python-list:
> at least a mailing list is way more frugal. and internet friendly.
And above all, PUSH rather than PULL.
Karsten
--
GPG 40BE 5B0E C98E 1713 AFA6 5BC0 3BEA AC80 7D4F C89B
--
https://mail.python.
On 07/10/2025 20:37, Thomas Passin wrote:
On 10/7/2025 2:49 PM, Rob Cliffe via Python-list wrote:
On 06/09/2025 17:21, MRAB wrote:
On 2025-09-06 13:47, Rob Cliffe via Python-list wrote:
I quite often find myself writing expressions of the form
someString[x : x+n]
where n is often an
On Sat, 18 Oct 2025 at 13:44, wrote:
>
> Dear Python Developers,
>
> I would like to bring attention to an inconsistency and legacy behavior
> regarding the handling of the German sharp S characters in Python’s string
> case conversion methods.
>
This isn't Python's decision. The definition of
Le 07/10/2025 à 20:14, Abdur-Rahmaan Janhangeer via Python-list a écrit :
Very sad ... At least as Steve Dower suggested even if we could get an
email from Discourse or something.
Kind Regards,
Abdur-Rahmaan Janhangeer
about <https://compileralchemy.github.io/> |
> Which brings to mind a possible alternate syntax: s[x::n]
This would AFAIK collide with the the x[a:b:c] syntax, which already means
something, the c is the size of a step
<https://docs.python.org/3/library/functions.html#slice>
M
On 8 October 2025 16:22:46 CEST, python-
Mauritius
On Tue, Oct 7, 2025 at 8:06 PM Hugo van Kemenade via Python-list <
[email protected]> wrote:
> Note: we also announce CPython releases at
> https://discuss.python.org/tag/release and https://blog.python.org, and
> are planning on only announcing at those places
In case anyone stumbles upon this, here's my question and partial self-answer
on Stack Overflow: https://stackoverflow.com/a/79765602/396373
--
https://mail.python.org/mailman3//lists/python-list.python.org
Hi,
I am testing the
[concurrent.interpreters](https://docs.python.org/3.14/library/concurrent.interpreters.html)
feature from Python **3.14rc3** (the latest current rc).
The subinterpreter seems to behave in a surprising way when encountering syntax
errors. For example, in the following code:
I need your help regarding how to run Python.NET demo samples (C:\Program
Files\PythonNet\demo) in C#.
Best Regards,
Vitarag Shah | Senior SEO Analyst
Azilen Technologies
📞 USA Phone Number: +1 (989) 287-9400
📞 EU Phone Number: +41 44 586 22 72
✉️ Business Inquiries: [email protected]
🌐 Website:
Note: we also announce CPython releases at
https://discuss.python.org/tag/release and https://blog.python.org, and are
planning on only announcing at those places in the future, and not on this
mailing list.
Please see https://discuss.python.org/t/python-3-14-0rc3-is-go/103815 for
the 3.14.0rc3 re
Well, that was the more important thing to do. :)
--
https://mail.python.org/mailman3//lists/python-list.python.org
Hi Steve, ask away...
On 11/09/25 16:15, Steve Jorgensen via Python-list wrote:
I posted a question here several days ago and received a "Welcome to the
"Python-list" mailing list!" email, but I still don't see my question in the list.
I'm posting this mainly to
So, ipdb is the ipython version of pdb. In fact, post_mortem is a
pdb function. I use ipdb because its REPL is a bit nicer to work
with then pdb.
-Original Message-
From: Stefan Ram
Subject: Re: Drop into REPL when your program crashes.
Date: 09/08/2025 06:04:16 PM
Newsgroups: comp.lang.p
Hi,
Recently I have been increasingly adding this piece of code as
a preamble to a lot of my code.
import (sys, os, ipdb)
def debug_hook(exc_type, exc_value, traceback):
if exc_type is KeyboardInterrupt:
sys.__excepthook__(exc_type, exc_value, traceback)
r
I've been experimenting to deepen my understanding of Python's behavior in
regard to metaclasses, descriptors, and other meta-programming stuff. In the
process, I have come across a behavior that is presumably by design but cannot
be inferred from anything I can find in the official documentatio
I posted a question here several days ago and received a "Welcome to the
"Python-list" mailing list!" email, but I still don't see my question in the
list.
I'm posting this mainly to see if it shows up, or I get a reply from a
moderator, or something like tha
On 7/09/25 00:47, Rob Cliffe via Python-list wrote:
I quite often find myself writing expressions of the form
someString[x : x+n]
where n is often an int and x may be an int, a variable, or a (possibly
complicated) expression.
0 A PEP
1 A helper-function
eg slice_by_length
I quite often find myself writing expressions of the form
someString[x : x+n]
where n is often an int and x may be an int, a variable, or a (possibly
complicated) expression.
It would be more natural to be able to specify the slice not by its
startpoint and ENDPOINT,
but by its startpoint an
On 03/09/2025 15:45, Oscar Benjamin wrote:
On Wed, 3 Sep 2025, 15:40 Rob Cliffe, wrote:
On 03/09/2025 15:35, Oscar Benjamin wrote:
On Wed, 3 Sep 2025, 15:21 Rob Cliffe via Python-list,
wrote:
On 03/09/2025 14:59, Mats Wichmann wrote:
> On 9/3/25 07
I have not installed python for a long time so I am not sure whether the
following configure flags are sufficient/recommandable for a
Python3.12.11 installation.
--prefix=/opt
--with-lto
--enable-optimizations
--enable-loadable-sqlite-extensions
--with-ensurepip=install
--with-pydebug
--with-as
I tried uv, and I don't see a point in using it. It does what some
other existing tools do. Maybe faster. But it's in the place where
speed is not important.
For work, I follow company's rules, which require setting up a project
in the company's Git server. It doesn't really matter in what order
t
How do you start (and thus run) a Python project?
tldr; question in last paragraph
Two articles appeared in my InTray:
- Reuven Lerner (Python Trainer) saying "You’re probably using uv wrong"
(https://lerner.co.il/2025/08/28/youre-probably-using-uv-wrong/),
NB adapted from [his] “Better develo
7;d appreciate it if someone could advise me on which version of Python is
recommended for that operating system.
Thank you very much.
Arodri
Thomas Passin escreveu (terça, 2/09/2025 à(s) 23:24):
> On 9/2/2025 11:29 AM, amrodi--- via Python-list wrote:
> > I'm new to Python.
>
"pip install
./matplotlib-3.9.2-cp313-cp313-win_amd64.whl". You will probably get
an error, and hopefully, the error message will give you some idea
about why it couldn't install this in your initial attempt.
On Tue, Sep 2, 2025 at 11:00 PM Rob Cliffe via Python-list
wrote:
>
> He
On Wed, 3 Sep 2025, 15:40 Rob Cliffe, wrote:
>
>
> On 03/09/2025 15:35, Oscar Benjamin wrote:
>
>
>
> On Wed, 3 Sep 2025, 15:21 Rob Cliffe via Python-list, <
> [email protected]> wrote:
>
>>
>>
>> On 03/09/2025 14:59, Mats Wic
On 03/09/2025 15:35, Oscar Benjamin wrote:
On Wed, 3 Sep 2025, 15:21 Rob Cliffe via Python-list,
wrote:
On 03/09/2025 14:59, Mats Wichmann wrote:
> On 9/3/25 07:20, Rob Cliffe wrote:
>>
>>
>> On 03/09/2025 00:01, Mats Wichmann wrote:
>
On Wed, 3 Sep 2025, 15:21 Rob Cliffe via Python-list, <
[email protected]> wrote:
>
>
> On 03/09/2025 14:59, Mats Wichmann wrote:
> > On 9/3/25 07:20, Rob Cliffe wrote:
> >>
> >>
> >> On 03/09/2025 00:01, Mats Wichmann wrote:
> &g
On 03/09/2025 14:59, Mats Wichmann wrote:
On 9/3/25 07:20, Rob Cliffe wrote:
On 03/09/2025 00:01, Mats Wichmann wrote:
On 9/2/25 14:51, Rob Cliffe via Python-list wrote:
There are two roots here:
(1) it's not finding a prebuilt wheel. You can see that because
it's propos
On 03/09/2025 00:01, Mats Wichmann wrote:
On 9/2/25 14:51, Rob Cliffe via Python-list wrote:
There are two roots here:
(1) it's not finding a prebuilt wheel. You can see that because it's
proposing to use the source distribution instead:
> Collecting matplotlib
>
On Tue, Sep 2, 2025 at 1:46 PM amrodi--- via Python-list
wrote:
>
> I'm new to Python.
> Operating System - Windows XP SP3
> Python 2.7 installed.
>
> I got a script that tries to improve the image?
> I created a bat file using the command line.
>
> C:\pyth
Hello, can anyone help? All assistance gratefully received. I am
running python 3.13.3 on a Windows 11 machine and trying to do
pip install matplotlib
(No, I don't need to say "python -m ...", I am running the right version
of python.exe.)
This starts by generating the following output (wh
>def f(x):
> try:
> quot = 10 / x
> except ZeroDivisionError as exc:
> log_error(exc)
> return 0
> else:
> log_return(quot)
> return quot + 1
> finally:
> "Any cleanup processing needed before returning"
This involves defining the new
My code
from PIL import Image, ImageEnhance
import matplotlib.pyplot as plt
import numpy as np
import cv2
# Original image path
image_path = "D:\temp\STC.jpg" # Altere se estiver em outro local
original_image = Image.open(image_path)
# Convert to OpenCV to apply enhancements
cv_image = cv2.cvtC
I'm new to Python.
Operating System - Windows XP SP3
Python 2.7 installed.
I got a script that tries to improve the image?
I created a bat file using the command line.
C:\python27\python.exe d:\temp\teste.py
But even though it runs, it displays an error:
"... no encoding declare..."
Can anyone
On 01/09/2025 14:26, marius.spix--- via Python-list wrote:
In your example when would isinstance(__exit_context__, ReturnContext)
be True and when would it be False? What would __exit_context__.value
be? I can't think of a sensible meaning for it. If no exception occurs,
is the value ret
On 01/09/2025 14:26, marius.spix--- via Python-list wrote:
In your example when would isinstance(__exit_context__, ReturnContext)
be True and when would it be False? What would __exit_context__.value
be? I can't think of a sensible meaning for it. If no exception occurs,
is the value ret
>In your example when would isinstance(__exit_context__, ReturnContext)
>be True and when would it be False? What would __exit_context__.value
>be? I can't think of a sensible meaning for it. If no exception occurs,
>is the value returned by f supposed to be 10/x or __exit_context__.value
>+ 1
clothes.
I despise those subtle advertisements.
Kind regards,
Schimon
On Fri, 29 Aug 2025 12:19:24 -0700
Larry Martell via Python-list wrote:
> https://www.youtube.com/watch?v=GfH4QL4VqJ0
>
> Watched this last night. Overall I enjoyed it (but my wife, who is
> not a programmer, fell
Well, this is the classic example of reinventing Lisp. But why do it
incrementally and in this ridiculously inconvenient way? For those
unaware of the history:
https://gigamonkeys.com/book/beyond-exception-handling-conditions-and-restarts
this is an informal explanation of the mechanism.
Better ye
On 30/08/2025 12:03, marius.spix--- via Python-list wrote:
Dear mailing list,
there is currently no direct way to observe the current interpreter state in a
finally block without tracing.
My idea is introducing an immutable __exit_context__ magic variable, which
would have one of three
Dear mailing list,
there is currently no direct way to observe the current interpreter state in a
finally block without tracing.
My idea is introducing an immutable __exit_context__ magic variable, which
would have one of three possible values:
* ReturnContext(value), if a return statement is
> Had this 'live-test' failed, where would Python be today?
I'm not sure if this is irony or do you honestly believe it
succeeded... but I think that "where Python is today" is pretty
indicative of failure. To me, however, the failure started with the
whole Python 3.X project, Guido being forced i
On Fri, Aug 29, 2025 at 3:37 PM Larry Martell via Python-list <
[email protected]> wrote:
> https://www.youtube.com/watch?v=GfH4QL4VqJ0
>
> Watched this last night. Overall I enjoyed it (but my wife, who is not a
> programmer, fell asleep). My only quibble is that they s
To you (if apparently in-reply to the OP),
On 30/08/25 07:19, Larry Martell via Python-list wrote:
https://www.youtube.com/watch?v=GfH4QL4VqJ0
Watched this last night. Overall I enjoyed it (but my wife, who is not a
programmer, fell asleep). My only quibble is that they spent too much time
https://www.youtube.com/watch?v=GfH4QL4VqJ0
Watched this last night. Overall I enjoyed it (but my wife, who is not a
programmer, fell asleep). My only quibble is that they spent too much time
talking about the walrus controversy.
--
https://mail.python.org/mailman3//lists/python-list.python.org
PS Ethan: way-down the docs you'll find two very handy methods worth
applying as a second-attempt at this challenge!
On 28/08/25 03:41, Chris Angelico via Python-list wrote:
On Thu, 28 Aug 2025 at 01:28, Ethan Carter wrote:
def copy(s, d):
"""Copies text fil
On 29/08/25 10:52, Grant Edwards via Python-list wrote:
On 2025-08-28, Mark Bourne wrote:
Ethan Carter wrote:
PS. Is it just me or there's just us in this used-to-be-very-active
group? Thanks for being my teacher here. Have a good day!
Until a few months ago, there was a gateway
On 2025-08-28, Mark Bourne wrote:
> Ethan Carter wrote:
>> PS. Is it just me or there's just us in this used-to-be-very-active
>> group? Thanks for being my teacher here. Have a good day!
>>
>
> Until a few months ago, there was a gateway that forwarded messages both
> ways between this newsg
On 2025-08-28, Roel Schroeven wrote:
>> If an OS did let you delete an open file, how would you expect it to
>> behave? Would you still be able to use the file? Would the file be
>> marked for deletion and be deleted when it was finally closed?
> Unix-like operating systems do let you delete a
On 2025-08-27, Chris Angelico via Python-list wrote:
> On Thu, 28 Aug 2025 at 01:28, Ethan Carter wrote:
>> def copy(s, d):
>> """Copies text file named S to text file named D."""
>> with open(s) as src:
>> with open(d,
1 - 100 of 3204 matches
Mail list logo