Re: Old matplotlib animation now fails

2024-10-16 Thread rbowman via Python-list
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! &

Re: dis.get_instructions not showing CACHE instructions

2024-10-10 Thread stopa via Python-list
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

Re: dis.get_instructions not showing CACHE instructions

2024-10-10 Thread Barry via Python-list
> 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

Re: shutil.rmtree() fails when used in Fedora (rpm) "mock" environment

2024-10-24 Thread MRAB via Python-list
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

Re: shutil.rmtree() fails when used in Fedora (rpm) "mock" environment

2024-10-24 Thread Barry via 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

Re: shutil.rmtree() fails when used in Fedora (rpm) "mock" environment

2024-10-24 Thread MRAB via Python-list
t calls, so they're in the same thread. -- https://mail.python.org/mailman/listinfo/python-list

Re: shutil.rmtree() fails when used in Fedora (rpm) "mock" environment

2024-10-24 Thread MRAB via 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,

Re: learning Python

2024-10-29 Thread rbowman via Python-list
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

Re: Using 'with open(...) as ...' together with configparser.ConfigParser.read

2024-10-29 Thread MRAB via 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()

[ANN] (preview) “pymsgque” is the connection between Tcl and the “Programming Language Micro-Kernel” (PLMK).

2024-11-03 Thread aotto1968 via Python-list
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

Re: Two python issues

2024-11-05 Thread dn via Python-list
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&#x

Re: Printing UTF-8 mail to terminal

2024-11-01 Thread Barry via Python-list
> 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

Re: Printing UTF-8 mail to terminal

2024-11-02 Thread Barry via Python-list
olour output and cursor movement all work. Barry -- https://mail.python.org/mailman/listinfo/python-list

learning Python

2024-10-27 Thread o1bigtenor via 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

Re: learning Python

2024-10-27 Thread dn via 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

Re: shutil.rmtree() fails when used in Fedora (rpm) "mock" environment

2024-10-27 Thread Barry via Python-list
> 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 >

Seeking Assistance with Python's IDLE for Blind Users

2024-11-11 Thread Jeff via Python-list
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

Re: FileNotFoundError thrown due to file name in file, rather than file itself

2024-11-11 Thread dn via Python-list
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

Re: Two aces up Python's sleeve (Posting On Python-List Prohibited)

2024-11-08 Thread dn via Python-list
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

Re: shutil.rmtree() fails when used in Fedora (rpm) "mock" environment

2024-10-25 Thread MRAB via Python-list
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

Re: How to check whether audio bytes contain empty noise or actual voice/signal?

2024-10-26 Thread MRAB via Python-list
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

Re: Using 'with open(...) as ...' together with configparser.ConfigParser.read

2024-10-31 Thread MRAB via Python-list
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

Re: Python 3.8 or later on Debian?

2024-09-18 Thread dn via Python-list
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

Re: Common objects for CLI commands with Typer

2024-09-20 Thread Barry via Python-list
> 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

Re: Help with Streaming and Chunk Processing for Large JSON Data (60 GB) from Kenna API

2024-09-30 Thread Barry via Python-list
> 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

Re: Two aces up Python's sleeve

2024-11-07 Thread dn via Python-list
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

Re: Old matplotlib animation now fails

2024-10-15 Thread MRAB via Python-list
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

Re: FileNotFoundError thrown due to file name in file, rather than file itself

2024-11-14 Thread Barry via Python-list
> 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

Re: it's a shame... python error over error

2025-01-03 Thread aotto1968 via Python-list
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

Re: Python List is Not Dead

2024-12-26 Thread dn via Python-list
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

online course - INTRODUCTION TO PYTHON PROGRAMMING FOR BIOLOGISTS - 24-27 February

2025-02-01 Thread info--- via Python-list
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

Re: ModuleNotFoundError for youtube_dl

2024-12-10 Thread jkn via Python-list
been supplanted by the (maintained) 'yt-dlp' these days J^n -- https://mail.python.org/mailman/listinfo/python-list

Re: it's a shame... python error over error

2024-12-16 Thread aotto1968 via 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*

Re: it's a shame... python error over error

2024-12-14 Thread aotto1968 via Python-list
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__

Re: it's a shame... python error over error

2024-12-13 Thread Barry via Python-list
> 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

Re: it's a shame... python error over error

2024-12-13 Thread aotto1968 via Python-list
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

Re: it's a shame... python error over error

2024-12-13 Thread aotto1968 via Python-list
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... python error over error

2024-12-13 Thread aotto1968 via Python-list
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

Re: it's a shame... python error over error

2024-12-13 Thread aotto1968 via 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*

Re: Tools to help with text mode (i.e. non-GUI) input

2025-01-11 Thread dn via Python-list
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

Re: Struggling to understand Callable type hinting

2025-01-17 Thread dn via Python-list
On 18/01/25 12:33, Ian Pilcher via Python-list wrote: I am making my first attempt to use type hinting in a new project, and I'm quickly hitting areas that I'm having trouble understanding.  One of them is how to write type hints for a method decorator. Here is an example that illu

Re: Tools to help with text mode (i.e. non-GUI) input

2025-01-13 Thread rustbuckett--- via Python-list
This is what I was going to suggest. Rich is super easy to use. -- https://mail.python.org/mailman/listinfo/python-list

Re: How to go about describing my software with a component diagram?

2024-12-24 Thread dn via 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

Re: How to go about describing my software with a component diagram?

2024-12-24 Thread dn via Python-list
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

Re: How to go about describing my software with a component diagram?

2024-12-25 Thread dn via Python-list
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

Re: it's a shame... python error over error

2024-12-25 Thread aotto1968 via Python-list
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

Re: it's a shame... python error over error

2024-12-25 Thread aotto1968 via Python-list
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

Re: subprocess.Popen does not launch audacity

2025-01-10 Thread MRAB via Python-list
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

is input from a pipe?

2025-01-17 Thread km via Python-list
(check_if_stream_is_pipe(sys.stdin)) -- https://mail.python.org/mailman/listinfo/python-list

Re: it's a shame... python error over error

2024-12-29 Thread aotto1968 via 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.

Re: it's a shame... python error over error

2024-12-29 Thread aotto1968 via Python-list
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

Re: it's a shame... python error over error

2024-12-29 Thread aotto1968 via Python-list
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

Re: it's a shame... python error over error

2024-12-29 Thread aotto1968 via Python-list
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

Re: it's a shame... python error over error

2024-12-29 Thread aotto1968 via Python-list
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

Re: Pip installs to unexpected place

2025-04-14 Thread rbowman via Python-list
> 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

Re: Pip installs to unexpected place

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

Re: Pip installs to unexpected place

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

Re: Pip installs to unexpected place

2025-04-16 Thread rbowman via Python-list
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

Re: Pip installs to unexpected place

2025-04-15 Thread dn via Python-list
-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

Re: Pip installs to unexpected place

2025-04-15 Thread rbowman via Python-list
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

Re: Pip installs to unexpected place

2025-04-15 Thread rbowman via 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

Re: Pip installs to unexpected place

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

Re: Pip installs to unexpected place

2025-04-21 Thread rbowman via Python-list
> 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

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

2025-03-08 Thread inhahe via Python-list
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

Machine Learning Methods for Longitudinal Data with Python – Online Course (6-9 May)

2025-02-28 Thread info--- via Python-list
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

magic-wormhole 0.18.0

2025-03-12 Thread meejah via Python-list
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

Re: Book recommendation? For getting up to date

2025-02-16 Thread rbowman via Python-list
On Sun, 16 Feb 2025 22:00:11 +0100, Jan Erik Moström wrote: > I have done so ... to be really honest, it was when I couldn't remember > how to create an iterator for a class I was writing, that I realized > that I needed a refresher. Most of my Python was related to Esri's

Re: Book recommendation? For getting up to date

2025-02-16 Thread rbowman via Python-list
On Mon, 17 Feb 2025 08:59:11 +1300, dn wrote: > - on Coursera am sad to advise avoiding U.Mich courses - they tend to be > re-worded Java (I think) content, don't follow PEP-008 and 'miss' Python > idioms The edx CS50 Python from Harvard is decent. It does start with t

Re: Book recommendation? For getting up to date

2025-02-16 Thread dn via Python-list
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

Re: Book recommendation? For getting up to date

2025-02-16 Thread rbowman via Python-list
On Sun, 16 Feb 2025 13:50:33 +0100, Jan Erik Moström wrote: > I used to be fairly good at Python, but I haven't done any serious > programming in the last 10 years or so. So I would like something that > got me up-to-date with the latest features. David Beasley's 'Pytho

Re: Book recommendation? For getting up to date

2025-02-19 Thread Mike via Python-list
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

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

2025-02-21 Thread rbowman via Python-list
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

Re: Book recommendation? For getting up to date

2025-02-20 Thread songbird via Python-list
Mike wrote: ... > My current best collection for online quality open access Python Books > is on: > https://nocomplexity.com/documents/pythonbook/generatedfiles/overview.html#books > thanks! no need for me to print any programming books. some old textbooks are still usef

Re: Matplotlib "collections" module in recent Python, Matplotlib

2025-06-18 Thread jmhannon.ucdavis--- via Python-list
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

Re: Matplotlib "collections" module in recent Python, Matplotlib

2025-06-18 Thread jmhannon.ucdavis--- via Python-list
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

Matplotlib "collections" module in recent Python, Matplotlib

2025-06-16 Thread jmhannon.ucdavis--- via Python-list
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

Re: Python tutor mailing list?

2025-05-27 Thread dn via Python-list
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

concurrent.interpreters: why syntax errors in exec() cause a SyntaxError instead of an InterpreterError?

2025-09-25 Thread a.mux--- via Python-list
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

Re: Slices by length

2025-09-06 Thread dn via Python-list
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

Environments and Version Control (if not packaging and PyPI)

2025-09-04 Thread dn via Python-list
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

Re: Test message. Posted a question several days ago and don't see it.

2025-09-10 Thread dn via Python-list
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

Re: Access to return / exception context in finally block

2025-09-01 Thread marius.spix--- via Python-list
easier. What do you think? Best wishes Marius Spix -- https://mail.python.org/mailman3//lists/python-list.python.org

Image enhance

2025-09-02 Thread amrodi9999--- via Python-list
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

Re: Image enhance

2025-09-02 Thread amrodi9999--- via Python-list
Save restored image sharp.save("STC_restaurada.jpg") -- https://mail.python.org/mailman3//lists/python-list.python.org

Re: Access to return / exception context in finally block

2025-09-02 Thread marius.spix--- via Python-list
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

Access to return / exception context in finally block

2025-08-30 Thread marius.spix--- via Python-list
): 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

PyPi mirrors

2025-08-24 Thread dn via Python-list
an3//lists/python-list.python.org

Re: can you improve this text-only beginner copy program?

2025-08-28 Thread dn via Python-list
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).

Re: can you improve this text-only beginner copy program?

2025-08-28 Thread dn via Python-list
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

Re: Python documentary

2025-08-29 Thread dn via Python-list
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

Re: Slices by length

2025-10-08 Thread meowxiik via Python-list
> 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-

PSF Python Brochure is ready to print: accepting ad orders now!

2012-07-12 Thread PSF Python Brochure Project Team
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

Have do_nothing as default action for dictionary?

2017-09-03 Thread Christopher Reimer via Python-list
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

Looking for Python examples for querying, selecting items in N-Triples

2017-09-04 Thread David Shi via 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

How best to search and get values of label in N-Triples

2017-09-04 Thread David Shi via Python-list
bel? Regards, David -- https://mail.python.org/mailman/listinfo/python-list

Re: Have do_nothing as default action for dictionary?

2017-09-04 Thread Christopher Reimer via 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

Can some one give examples of how to use graph.label to get data values while dealing with N-Triples files?

2017-09-04 Thread David Shi via 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

How to get values for skos/note, skos/notation and label in N-Triples

2017-09-05 Thread David Shi via 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

Setting property for current class from property in an different class...

2017-09-06 Thread Christopher Reimer via 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

Re: Setting property for current class from property in an different class...

2017-09-06 Thread Christopher Reimer via Python-list
r @property item? Thank you, Chris R. -- https://mail.python.org/mailman/listinfo/python-list

<    19   20   21   22   23   24   25   26   27   28   >