On 16 Oct 2024 08:20:10 GMT, Martin Schöön wrote:
> Den 2024-10-15 skrev Stefan Ram :
>> Martin =?UTF-8?Q?Sch=C3=B6=C3=B6n?= wrote or
>> quoted:
>>>l.set_data(x0, y0)
>>
>> Well, I got to say, it's pretty rad that you're rocking Python!
&
Oh god I am sorry :/ I somehow missed information about cache_info field.
I was expecting to see those cache instructions as normal opcodes. So its
working as expected.
Thanks for your help.
M.
št 10. 10. 2024 o 18:53 Barry napísal(a):
>
>
> > On 10 Oct 2024, at 14:18, stopa via
> On 10 Oct 2024, at 14:18, stopa via Python-list
> wrote:
>
> Hello,
> I noticed the change in dis module, no longer requiring show_caches to be
> set to True to show cache instructions. However I am not able to display
> them with get_instructions.
> Is ther
t is the probability of replacing os.lstat, os.close or os.rmdir from
another thread at just the right time?
--
https://mail.python.org/mailman/listinfo/python-list
> On 24 Oct 2024, at 15:07, Christian Buhtz via Python-list
> wrote:
>
> On one hand Fedora seems to use a tool called "mock" to build packages in a
> chroot environment.
> On the other hand the test suite of "Back In Time" does read and write to t
t calls, so they're in the same
thread.
--
https://mail.python.org/mailman/listinfo/python-list
On 2024-10-24 16:17, Left Right via Python-list wrote:
From reading the code where the exception is coming from, this is how
I interpret the intention of the author: they build a list (not sure
why they used list, when there's a stack datastructure in Python)
which they use as a stack,
meshes with your own learning style.
It isn't a beginners tutorial but at some point 'Python Distilled' is
helpful.
https://www.dabeaz.com/python-distilled/
Usual disclaimer: i don't know Beazley and am not getting any kickback.
--
https://mail.python.org/mailman/listinfo/python-list
On 2024-10-29 13:56, Loris Bennett via Python-list wrote:
Hi,
With Python 3.9.18, if I do
try:
with open(args.config_file, 'r') as config_file:
config = configparser.ConfigParser()
config.read(config_file)
print(config.sections()
ANNOUNCEMENT
"pymsgque" is the project to integrate the Programming-Language-Micro-Kernel
(*PLMK*) into *Python*.
Together with C, C++, Java, Ruby and Tcl, a growing language community is emerging that will combine *all* existing programming
languages with *PLMK* technology in
On 6/11/24 10:08, Jason Friedman via Python-list wrote:
(a) An error-prone "feature" is returning -1 if a substring is not found
by "find", since -1 currently refers to the last item. An example:
>>> s = 'qwertyuiop'
>>> s[s.find('r
> On 31 Oct 2024, at 16:42, Left Right via Python-list
> wrote:
>
> MS Windows doesn't have or use
> terminals (that's more of a Unix-related concept).
Windows does now. They implemented this feature over the last few years.
Indeed they took inspiration from how li
olour output and cursor movement all work.
Barry
--
https://mail.python.org/mailman/listinfo/python-list
Greetings
There are mountains of books out there.
Any suggestions for documents for a just learning how to program and
starting with Python (3)?
Preference to a tool where I would be learning by doing - - - that
works well for me.
TIA
--
https://mail.python.org/mailman/listinfo/python-list
On 28/10/24 11:51, o1bigtenor via Python-list wrote:
Greetings
There are mountains of books out there.
Any suggestions for documents for a just learning how to program and
starting with Python (3)?
Preference to a tool where I would be learning by doing - - - that
works well for me
> On 26 Oct 2024, at 12:11, Christian Buhtz via Python-list
> wrote:
>
> As you can see in the linked issue it seems it was an incompatibility
> between the version of Python and PyFakeFS.
>
> In the end it was a Fedora packaging bug because that pyfakefs version
>
Dear Python Users Group,
I am currently learning Python. I am blind and use the JAWS screen reader to
assist me. I am trying to use Python's IDLE editor but find it quite
challenging. When I move my cursor to a line of code, it reads out the
letters or words from the line above, which mak
On 12/11/24 10:17, Cameron Simpson via Python-list wrote:
On 11Nov2024 18:24, [email protected]
wrote:
Loris Bennett wrote at 2024-11-11 15:05 +0100:
I have the following in my program:
try:
logging.config.fileConfig(args.config_file)
config = configparser.ConfigParser
On 8/11/24 14:40, Mild Shock via Python-list wrote:
Well you can use your Browser, since
JavaScript understand post and pre increment:
Question: are we talking Python or JavaScript?
So we have x ++ equals in Python:
Trying to find a word-for-word translation serves as badly in
computer
On 2024-10-24 08:33, Christian Buhtz via Python-list wrote:
Hello,
I am upstream maintainer of "Back In Time" [1] investigating an issue a
distro maintainer from Fedora reported [2] to me.
On one hand Fedora seems to use a tool called "mock" to build packages
in a chroot
On 2024-10-25 17:25, marc nicole via Python-list wrote:
Hello Python fellows,
I hope this question is not very far from the main topic of this list, but
I have a hard time finding a way to check whether audio data samples are
containing empty noise or actual significant voice/noise.
I am using
On 2024-10-31 06:47, Loris Bennett via Python-list wrote:
Jon Ribbens writes:
On 2024-10-30, Loris Bennett wrote:
Jon Ribbens writes:
On 2024-10-30, Loris Bennett wrote:
Jon Ribbens writes:
As per the docs you link to, the read() method only takes filename(s)
as arguments, if you have
On 19/09/24 02:49, Ulrich Goebel via Python-list wrote:
Hi,
Debian Linux seems to love Python 3.7 - that is shown by apt-get list, and it's
installed on my Debian Server.
But I need at least Python 3.8
Is there a repository which I can give to apt to get Python 3.8 or later?
Or do I r
> On 20 Sep 2024, at 21:01, Loris Bennett via Python-list
> wrote:
>
> Hi,
>
> Apologies if the following description is to brief - I can expand if no
> one knows what I'm on about, but maybe a short description is enough.
>
> I am developing a command lin
> On 30 Sep 2024, at 06:52, Abdur-Rahmaan Janhangeer via Python-list
> wrote:
>
>
> import polars as pl
> pl.read_json("file.json")
>
>
This is not going to work unless the computer has a lot more the 60GiB of RAM.
As later suggested a streaming pars
On 8/11/24 11:15, Greg Ewing via Python-list wrote:
On 8/11/24 3:04 am, Mild Shock wrote:
This only works for small integers. I guess
this is because tagged pointers are used
nowadays ?
No, it's because integers in a certain small range are cached. Not sure
what the actual range is now
On 2024-10-15 21:16, Martin Schöön via Python-list wrote:
Some years ago I created a Python program that reads GPS data and
creates an animation stored in an mp4 file. Not very elegant but it
worked. Not very original as it was based on the example found here:
https://shorturl.at/dTCZZ
Last
> On 14 Nov 2024, at 14:07, Loris Bennett via Python-list
> wrote:
>
> I don't quite understand what your suggestion is. Do you mean that I
> should log to stderr and then run my program as
>
> my_program ... 2>&1 | logger
On almost all Linux distros you
On 30.12.24 18:29, Michael Torrie wrote:
On 12/26/24 12:34 AM, aotto1968 via Python-list wrote:
sorry you don't understand the problem…
> You managed to make a build of Python that attempts to link to a DLL
I never touch the OpenSUSE python. the OpenSUSE python try to use my
sqalite
On 25/12/24 23:52, Abdur-Rahmaan Janhangeer via Python-list wrote:
Hey all,
I have been following discussions on Discourse (discuss.python.org) these
last times.
I think that it definitely lacks some of the joys of the mailing list:
1/ Categories
The discussion has fixed categories. No
Dear all,
there are the last seats available for our online course - INTRODUCTION TO
PYTHON PROGRAMMING FOR BIOLOGISTS
Dates: 24–27 February
Course Website: [ https://www.physalia-courses.org/courses-workshops/python24/
]( https://www.physalia-courses.org/courses-workshops/python24/ )
This four
been supplanted by the (maintained)
'yt-dlp' these days
J^n
--
https://mail.python.org/mailman/listinfo/python-list
On 13.12.24 11:36, aotto1968 wrote:
it's a shame...
almost every tool I touch that uses "python" in some way has some configuration error because apparently a __private__ python
installation __isn't__ properly "understood".
-> I think after ~30 years *python*
On 14.12.24 10:56, Peter J. Holzer wrote:
On 2024-12-13 11:36:01 +0100, aotto1968 via Python-list wrote:
it's a shame...
almost every tool I touch that uses "python" in some way has some
configuration error because apparently a __private__ python installation
__isn't__
> On 13 Dec 2024, at 15:54, aotto1968 via Python-list
> wrote:
>
> HOME/ext/x86_64-suse-linux-gnu/debug/bin/python3: error while loading shared
> libraries: libpython3.12d.so.1.0: cannot open shared object file: No such
> file or directory
This is a debug b
On 13.12.24 19:24, Barry wrote:
On 13 Dec 2024, at 15:54, aotto1968 via Python-list
wrote:
HOME/ext/x86_64-suse-linux-gnu/debug/bin/python3: error while loading shared
libraries: libpython3.12d.so.1.0: cannot open shared object file: No such file
or directory
This is a debug build
On 13.12.24 11:44, aotto1968 wrote:
On 13.12.24 11:36, aotto1968 wrote:
it's a shame...
almost every tool I touch that uses "python" in some way has some configuration error because apparently a __private__ python
installation __isn't__ properly "understood"
it's a shame...
almost every tool I touch that uses "python" in some way has some configuration error because apparently a __private__ python
installation __isn't__ properly "understood".
-> I think after ~30 years *python* should be able to handle a shared-l
On 13.12.24 11:36, aotto1968 wrote:
it's a shame...
almost every tool I touch that uses "python" in some way has some configuration error because apparently a __private__ python
installation __isn't__ properly "understood".
-> I think after ~30 years *python*
On 12/01/25 03:28, Chris Green via Python-list wrote:
I'm looking for Python packages that can help with text mode input,
i.e. for use with non-GUI programs that one runs from the command
prompt in a terminal window running a bash shell or some such.
What I'm specifically after i
On 18/01/25 12:33, Ian Pilcher via Python-list wrote:
I am making my first attempt to use type hinting in a new project, and
I'm quickly hitting areas that I'm having trouble understanding. One of
them is how to write type hints for a method decorator.
Here is an example that illu
This is what I was going to suggest. Rich is super easy to use.
--
https://mail.python.org/mailman/listinfo/python-list
On 25/12/24 08:00, Michael Torrie via Python-list wrote:
On 12/24/24 10:27 AM, marc nicole via Python-list wrote:
the diagram is also attached here
This text-only mailing list does not allow attachments, just FYI.
Many devs use Markdown (or similar) text-only file-formats for technical
On 25/12/24 06:27, marc nicole via Python-list wrote:
Hello community,
I have created a Python code where a main algorithm uses three different
modules (.py) after importing them.
To illustrate and describe it I have created the following component
diagram?
[image: checkso.PNG]
Could it be
e of my code and how the modules
> relate to each other.
On 25/12/24 23:08, marc nicole via Python-list wrote:
the purpose of the diagram is to convey a minimalistic idea about the
structure of the code/implementation/software
In which case, and assuming the "algorithm" is the ap
I get angry…
next python error…
1) The OpenSUSE command "cnf" checks if a special package feature is installed.
2) I recently compiled **my** SQLite3 library specifically tailored to **my** requirement and installed it in **my** SQLite3
project directory and never changed th
On 25.12.24 12:05, aotto1968 wrote:
I get angry…
next python error…
1) The OpenSUSE command "cnf" checks if a special package feature is installed.
2) I recently compiled **my** SQLite3 library specifically tailored to **my** requirement and installed it in **my** SQLite3
project
On 2025-01-10 19:15, Tim Johnson via Python-list wrote:
Using Python 3.12.3 on Ubuntu 24.04
I've converted a legacy python2 script to python3. All went well.
However, a glitch from python2 remains.
The script uses dmenu to create menus to pick applications. Applications
are then invoked
(check_if_stream_is_pipe(sys.stdin))
--
https://mail.python.org/mailman/listinfo/python-list
On 25.12.24 23:55, Chris Angelico wrote:
On Thu, 26 Dec 2024 at 09:27, aotto1968 via Python-list
wrote:
It is not only an *usage* error it is also an *security* error because:
1) "cnf" is using OS python
2) os "root" python
3) using **my** local non-root library
Yes.
On 26.12.24 06:46, Chris Angelico wrote:
On Thu, 26 Dec 2024 at 14:57, Michael Torrie via Python-list
wrote:
On 12/25/24 3:55 PM, Chris Angelico via Python-list wrote:
On Thu, 26 Dec 2024 at 09:27, aotto1968 via Python-list
wrote:
It is not only an *usage* error it is also an *security
On 26.12.24 04:55, Michael Torrie wrote:
On 12/25/24 3:55 PM, Chris Angelico via Python-list wrote:
On Thu, 26 Dec 2024 at 09:27, aotto1968 via Python-list
wrote:
It is not only an *usage* error it is also an *security* error because:
1) "cnf" is using OS python
2) os "root&q
On 26.12.24 04:55, Michael Torrie wrote:
On 12/25/24 3:55 PM, Chris Angelico via Python-list wrote:
On Thu, 26 Dec 2024 at 09:27, aotto1968 via Python-list
wrote:
It is not only an *usage* error it is also an *security* error because:
1) "cnf" is using OS python
2) os "root&q
On 26.12.24 19:33, Michael Torrie wrote:
On 12/25/24 10:46 PM, Chris Angelico wrote:
Right. That's exactly what would happen if he'd built Python using
absolute paths to libraries, which is the normal way to do it. And so
the solution is to rebuild Python using absolute paths to
> set up? I usually put them into ~/venv. For example, a venv named "gf4"
> is at ~/venv/gf4.
Are you sure about that? activate has
VIRTUAL_ENV="/home/rbowman/work/python/weather"
export VIRTUAL_ENV
_OLD_VIRTUAL_PATH="$PATH"
PATH="$VIRTUAL_ENV/bin:$PATH&q
On 14/04/25 11:10, Jonathan Gossage via Python-list wrote:
I am using *Python 3.13* in a virtual environment under *Ubuntu Linux 24.04*
.
The version of Python was compiled from source code and installed with make
altinstall. I attempted to use *pip* to install the *Sphinx* package into
the
On Sun, 13 Apr 2025 19:10:47 -0400, Jonathan Gossage wrote:
> The version of Python was compiled from source code and installed with
> make altinstall. I attempted to use *pip* to install the *Sphinx*
> package into the virtual environment using the command *pip install
> sphinx* in
o be
> true but nowadays Pip wants you to use the --break-system-packages flag
> if you want to insist on installing into the system's Python install,
> even if it's going to go into --user. I'm not sure if the restriction
> will be in place given that the OP built his own
-discussions -
but will hearing only half of some of the conversation help them?
On 14/04/25 11:33, dn via Python-list wrote:
On 14/04/25 11:10, Jonathan Gossage via Python-list wrote:
I am using *Python 3.13* in a virtual environment under *Ubuntu Linux
24.04*
.
The version of Python was compiled
te.ps1 is in the
Scripts subdirectory and you do run it directly. On Linux the python in
bin is usually a symlink, although you can specify it to be copied with a
parameter to venv. Symlinks on Windows are problematic but the process is
more or less the same.
--
https://mail.python.org/mailman/listinfo/python-list
sing *--user.
This may depend on the OS. On Ubuntu 24.10 with python 3.12.7 I get
$ pip install black
error: externally-managed-environment
× This environment is externally managed
╰─> To install Python packages system-wide, try apt install
python3-xyz, where xyz is the package yo
Peter J. Holzer wrote:
> On 2025-04-18 13:08:36 -0400, Thomas Passin via Python-list wrote:
...
>> When the system launches its application the PYTHONPATH will start with
>> system site directories; local user site directories will be on the
>> PYTHONPATH but since they come l
> OK but beyond that and they tend to suffer knowledge rot.
My Python directory has
apple/ create/ fastapi/ lunar/ numerical/ pyside6/ weather/
comics/ django/ folium/ ml/ sqlite/ coursera/ impractical/
nn/ pyqt/ torch/
Not all like sqlite are venvs since no additional modules
ly by
accident? I don't know.
On Sat, 8 Mar 2025 at 16:59, Praveen Kumar via Python-list <
[email protected]> 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 t
Dear all,
There are still 5 seats left for the upcoming Physalia course "Machine Learning
Methods for Longitudinal Data with Python," which is taking place online from
6-9 May. This course will provide a comprehensive introduction to analyzing
sequence data (repeated over time or s
ce diagram
* Support Read the Docs pull-request builds
* Drop support for Python 3.8 (#556)
* Add broken-link checker (#588, https://github.com/Cycloctane)
* Preemptively fix Click 8.2 (#584, @cjwatson)
* Basic support for PEP518 (#579, @SnoopJ)
* Add WORMHOLE_ACCEPT_FILE (#570, @haatveit)
thanks to
On Sun, 16 Feb 2025 22:00:11 +0100, Jan Erik Moström wrote:
> I have done so ... to be really honest, it was when I couldn't remember
> how to create an iterator for a class I was writing, that I realized
> that I needed a refresher.
Most of my Python was related to Esri's
On Mon, 17 Feb 2025 08:59:11 +1300, dn wrote:
> - on Coursera am sad to advise avoiding U.Mich courses - they tend to be
> re-worded Java (I think) content, don't follow PEP-008 and 'miss' Python
> idioms
The edx CS50 Python from Harvard is decent. It does start with t
On 17/02/25 01: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
On Sun, 16 Feb 2025 13:50:33 +0100, Jan Erik Moström wrote:
> I used to be fairly good at Python, but I haven't done any serious
> programming in the last 10 years or so. So I would like something that
> got me up-to-date with the latest features.
David Beasley's 'Pytho
On 16-02-2025 13: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 us
s wonders. A good layout and talble of
contents also helps. Decorators? Chapter 14, page 254, all you ever wanted
to know about them.
--
https://mail.python.org/mailman/listinfo/python-list
Mike wrote:
...
> My current best collection for online quality open access Python Books
> is on:
> https://nocomplexity.com/documents/pythonbook/generatedfiles/overview.html#books
>
thanks!
no need for me to print any programming books.
some old textbooks are still usef
Thanks. That appears to be exactly the thing I was looking for (vis-a-vis
collections).
--
https://mail.python.org/mailman3//lists/python-list.python.org
Thanks, D'Arcy. I've done a fair amount of 2-to-3 migration in the past, but
there was a lot of stuff in that article ("six", for instance) that I hadn't
run across.
--
https://mail.python.org/mailman3//lists/python-list.python.org
Greetings. We (the group that I work with) have "inherited" some Python
scripts that were written years ago, using Python 2.
We're trying to upgrade the scripts so that they work in our current
environment:
OS: Ubuntu 24.04.2 LTS
$ python --version
Message received!
Hope you enjoyed your holiday...
On 28/05/25 12:00, Alan Gauld via Python-list wrote:
On 28/05/2025 00:32, Alan Gauld via Python-list wrote:
The archives are still there and the sign-up page seems to
work, but it doesn't recognise me. I tried signing up as
a new m
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
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
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 [hi
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
easier.
What do you think?
Best wishes
Marius Spix
--
https://mail.python.org/mailman3//lists/python-list.python.org
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 declar
Save restored image
sharp.save("STC_restaurada.jpg")
--
https://mail.python.org/mailman3//lists/python-list.python.org
t have to juggle with local variables. The finally
block can write to the return value, so there is no reason to hide the return
value or already caught exceptions here. This would make the code much cleaner
and avoids messing up with the scope of variables.
--
https://mail.python.org/mailman3//lists/python-list.python.org
):
log_return(__exit_context__.value)
return __exit_context__.value + 1
I wonder if it would be a candidate for a PEP to be implemented in the Python
standard.
Best regards
Marius Spix
--
https://mail.python.org/mailman3//lists/python-list.python.org
an3//lists/python-list.python.org
The suggestion (below) is good-practice. However, it's advanced-Python
compared to the OP's first-course progress.
What is disappointing, is that instead of general strings as file-names
the class has not been introduced to pathlib
(https://docs.python.org/3/library/pathlib.html).
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
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
> 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-
The PSF Python Brochure Project has finished the content and layout
phase. The first full format pre-production issues were shown at the
PSF booth during the EuroPython Conference 2012 in Florence, Italy,
and caused a lot of excitement - to print the brochure we now need
supporting sponsors
dictionary to return value on KeyError exception.
What's the most pythonic and fastest?
Thank you,
Chris R.
--
https://mail.python.org/mailman/listinfo/python-list
I found this is very confusing.
I will appreciate if simple examples are given.
Regards,
David
--
https://mail.python.org/mailman/listinfo/python-list
bel?
Regards,
David
--
https://mail.python.org/mailman/listinfo/python-list
ke my previous function, solved the problem that I had
with the dictionary, the dictionary is created only once, a half dozen
functions got moved into the new class, and the old class now has less
clutter.
Thanks everyone!
Chris R.
--
https://mail.python.org/mailman/listinfo/python-list
org/id/geography/administration/par/E04009816>
<http://www.w3.org/2004/02/skos/core#note> "Live"
.<http://opendatacommunities.org/id/geography/administration/par/E04009816>
<http://www.w3.org/2004/02/skos/core#notation> "E04009816" .
Regards,
David
--
https://mail.python.org/mailman/listinfo/python-list
n/par/E04009817>
<http://www.w3.org/2004/02/skos/core#notation> "E04009817" .
Are there any hello world examples?
Regards,
David
--
https://mail.python.org/mailman/listinfo/python-list
.
AttributeError: 'Scraper' object has no attribute 'requestor'
That's either a bug or I'm doing it wrong. Or maybe both?
Thank you,
Chris R.
--
https://mail.python.org/mailman/listinfo/python-list
r @property item?
Thank you,
Chris R.
--
https://mail.python.org/mailman/listinfo/python-list
2301 - 2400 of 6612 matches
Mail list logo