Trailer for upcoming Python documentary

2025-05-18 Thread Larry Martell via Python-list
https://youtu.be/pqBqdNIPrbo?si=P2ukSXnDj3qy3HBJ -- https://mail.python.org/mailman/listinfo/python-list

Re: Searching for a file

2025-05-27 Thread Roland Mueller via Python-list
s and add the resulting list of files. >>> tmp_files = [] >>> for dir in ['/tmp', '/var/tmp']: ... tmp_files += [f for f in glob(dir + '/*') if isfile(f) ] ti 27.5.2025 klo 17.05 Peter J. Holzer ([email protected]) kirjoitti: > On 2025-05-

Re: Searching for a file

2025-05-24 Thread Chris Angelico via Python-list
On Sun, 25 May 2025 at 10:05, Rob Cliffe via Python-list wrote: > Yes, but if I understand correctly, they all start from a single > directory (and work downwards if required). > My suggestion involved searching a *list* (possibly multiple lists) of > directories. for dir in dirs:

Re: Best practice for config files?

2025-05-24 Thread Jason H via Python-list
re on this idea. So, I use an environment variable because my config is shared between Python and Java auto test frameworks. I think keeping the config adjacent to the .py files is also workable because a Python program can know where it is: from pathlib import Path script_path = Path(__file__).re

Re: Searching for a file

2025-05-24 Thread Rob Cliffe via Python-list
On 25/05/2025 00:18, Mats Wichmann wrote: On 5/23/25 16:05, Rob Cliffe via Python-list wrote: On 23/05/2025 18:55, Mats Wichmann wrote: On 5/22/25 21:04, Rob Cliffe via Python-list wrote: It occurs to me that it might be useful if Python provided a function to search for a file with a

Re: Searching for a file

2025-05-27 Thread Roland Mueller via Python-list
he parts for the glob mask together instead of plain '/'. > > > ti 27.5.2025 klo 17.05 Peter J. Holzer ([email protected]) kirjoitti: > >> On 2025-05-24 17:18:11 -0600, Mats Wichmann wrote: >> > On 5/23/25 16:05, Rob Cliffe via Python-list wrote: >> &g

Re: Searching for a file

2025-05-28 Thread Roland Mueller via Python-list
ke 28.5.2025 klo 1.45 Thomas Passin ([email protected]) kirjoitti: > On 5/27/2025 10:41 AM, Roland Mueller via Python-list wrote: > > To get a list of files in a given directory one can use glob.glob and > > The OP had a different problem. He wanted to find a config file of &g

Re: Python tutor mailing list?

2025-05-27 Thread Alan Gauld via Python-list
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 member with a different address and that seems to work(ie no > errors) but I still don;t see any

Python tutor mailing list?

2025-05-27 Thread Alan Gauld via Python-list
I am the moderator of the python tutor mailing list. Or at least I was. It seems the tutor list has been deleted. I came back from vacation to find that I can't access it. Nobody told me anything in advance. I've tried emailing postmaster but got no response. I wonder if anyone here ha

Feedback & Discussion: Magic Wormhole 0.19.0 Release Updates

2025-06-03 Thread MyMilestone Card via Python-list
consumption Better reconnection handling via Dilation timeouts pytest test suite conversion Python 3.9 support dropped (good call in line with ecosystem trends) sdist file renaming (PEP 625 compliance) These seem like solid improvements for both the end-user experience and contributors. Has anyone here

Re: Python tutor mailing list?

2025-05-28 Thread Marc Nicole via Python-list
Being a user of that list i've also noticed that only recently. hope that this list is good enough to take on all python questions. Are there any other alternative lists? Thx On Wed, 28 May 2025, 01:35 Alan Gauld via Python-list, < [email protected]> wrote: > I am the mo

the ordering problem using multiprocessing.Queue with multiple processes

2025-08-11 Thread Li Li via Python-list
en all the consumers finished, the queue is still not empty. So the producers can't finish. I am very confused about this. Why use lock has synchronization problem. It seems when the last producer put None to queue, other producers still can put normal data to queue. I am not famil

Re: Slices by length

2025-10-18 Thread Rob Cliffe via Python-list
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

Re: Proposal to update Unicode handling for German sharp S (ß / ẞ) in Python’s case conversion methods

2025-10-18 Thread Chris Angelico via Python-list
dopting it in 2017. The > relevant case mappings are clearly specified in the Unicode Character > Database (CaseFolding.txt / SpecialCasing.txt), so Unicode itself does > recognize this direct uppercase/lowercase relationship. > > The current Python behavior (mapping "ß"

Re: Proposal to update Unicode handling for German sharp S (ß / ẞ) in Python’s case conversion methods

2025-10-17 Thread Chris Angelico via Python-list
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

Help Needed to Run Python.NET Demo Samples in C#

2025-09-23 Thread vitarag shah via Python-list
Website: https://www.azilen.com -- https://mail.python.org/mailman3//lists/python-list.python.org

Re: Detailed documentation or specs for behavior of descriptors in attributes of metaclasses

2025-09-26 Thread Steve Jorgensen via Python-list
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

Re: Python 3.14.0 (final) is here!

2025-10-18 Thread Ed Leafe via Python-list
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

Re: Python 3.14.0 (final) is here!

2025-10-18 Thread Karsten Hilbert via Python-list
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.

Re: Proposal to update Unicode handling for German sharp S (ß / ẞ) in Python’s case conversion methods

2025-10-19 Thread Chris Angelico via Python-list
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'

entanglement.py: New tool for calling C++ symbols directly from Python using the C++ABI

2025-08-22 Thread Adrian Johnston via Python-list
Hello, I recently hacked together a script called entanglement.py that uses libclang to parse C++ headers and generate a Python wrapper that can call the C++ symbols in a .so directly. The Itanium C++ ABI is easy enough to call from ctypes with 1 exception. Returning a class by value from C

Slices by length

2025-09-06 Thread Rob Cliffe via Python-list
(or less plausibly "321"). I don't have a strong opinion on this; there may be good reasons for preferring one to another. Does anybody think this is a good idea? Best wishes Rob Cliffe -- https://mail.python.org/mailman3//lists/python-list.python.org

Python Installation -- configure flags

2025-09-05 Thread Klaus Jantzen via Python-list
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

Re: Error installing matplotlib

2025-09-05 Thread Rob Cliffe via Python-list
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

Re: Environments and Version Control (if not packaging and PyPI)

2025-09-04 Thread Left Right via Python-list
very few weeks or so, when they add a new breaking change. Conda world brings a lot of unnecessary suffering... -- https://mail.python.org/mailman3//lists/python-list.python.org

Re: Python documentary

2025-09-01 Thread Schimon Jehudah via Python-list
in order to censor information, such as BitTorrent and P2P which Python was influential of. The first implementation and introduction of BitTorrent was in Python. I supose, that someone would remake this movie, adding more significant historical events; and, please, remove those brands from those

Re: Access to return / exception context in finally block

2025-09-01 Thread Left Right via Python-list
yet, why not just use Lisp instead? You'd save yourself so much busy work and have a much nicer tool... -- https://mail.python.org/mailman3//lists/python-list.python.org

Error installing matplotlib

2025-09-02 Thread Rob Cliffe via Python-list
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 f

Re: Drop into REPL when your program crashes.

2025-09-10 Thread Annada Behera via Python-list
ebug mode enabled: Using pdb post-mortem on uncaught exceptions. Uncaught exception: ZeroDivisionError: division by zero > debug_hook.py(19)cause_exception() -> return 1 / 0  # Will raise ZeroDivisionError (Pdb) i 3 (Pdb)   . -- https://mail.python.org/mailman3//lists/python-list.python.org

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

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

Detailed documentation or specs for behavior of descriptors in attributes of metaclasses

2025-09-10 Thread Steve Jorgensen via Python-list
tters for a class and its instances. Does anyone know of anywhere in the Python docs or PEPs that have the information needed to predict this behavior? -- https://mail.python.org/mailman3//lists/python-list.python.org

Drop into REPL when your program crashes.

2025-09-10 Thread Annada Behera via Python-list
nd down my backtrace like I am in gdb. In fact, it is better than gdb. I can use evaluate any python expression directly, and verify the shape of my tensors and exactly what caused the error. It's like freezing the entire program right at the time the program failed. This way I don't hav

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

2025-09-12 Thread Steve Jorgensen via Python-list
Well, that was the more important thing to do. :) -- https://mail.python.org/mailman3//lists/python-list.python.org

Re: Access to return / exception context in finally block

2025-09-01 Thread Rob Cliffe via Python-list
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

Re: Access to return / exception context in finally block

2025-09-01 Thread Rob Cliffe via Python-list
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

Re: Python documentary

2025-08-30 Thread Left Right via Python-list
> 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

Re: Access to return / exception context in finally block

2025-08-31 Thread Rob Cliffe via Python-list
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

Re: Error installing matplotlib

2025-09-03 Thread Rob Cliffe via Python-list
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

Re: Error installing matplotlib

2025-09-03 Thread Left Right via Python-list
"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

Re: Image enhance

2025-09-03 Thread AM CR via Python-list
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. >

Re: Error installing matplotlib

2025-09-03 Thread Oscar Benjamin via Python-list
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

Re: Error installing matplotlib

2025-09-03 Thread Oscar Benjamin via Python-list
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

Re: Error installing matplotlib

2025-09-03 Thread Rob Cliffe via Python-list
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: >

Re: Error installing matplotlib

2025-09-03 Thread Rob Cliffe via Python-list
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 >

Re: Image enhance

2025-09-03 Thread Joel Goldstick via Python-list
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

Re: Slices by length

2025-10-18 Thread Rob Cliffe via Python-list
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

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

2025-08-28 Thread Grant Edwards via Python-list
ystem won't 'delete' the actual file (inode and associated storage blocks) unless that was the only link to the inode and there are no open file handles associated with the inode. When the total number of links/handles drops to zero, then the filesystem will 'delete' the file. -- https://mail.python.org/mailman3//lists/python-list.python.org

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

2025-08-28 Thread Grant Edwards via Python-list
things like programming lanugages by watching Youtube videos. [Talk about the worst possible medium for a particular subject...] -- Grant -- https://mail.python.org/mailman3//lists/python-list.python.org

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

2025-08-27 Thread Grant Edwards via Python-list
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,

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

2025-08-27 Thread Chris Angelico via Python-list
two opens into a single with statement. If you can guarantee a minimum Python version of 3.10 (released 2020, now in source-only-fix mode, so any fully supported version will indeed be >=3.10), you can write it like this: with (open(s) as src, open(d, "w") as dst): or this: w

Re: Python documentary

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

Python documentary

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

Re: Proposal to update Unicode handling for German sharp S (ß / ẞ) in Python’s case conversion methods

2025-10-22 Thread Chris Angelico via Python-list
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'

Re: Proposal to update Unicode handling for German sharp S (ß / ẞ) in Python’s case conversion methods

2025-10-22 Thread Michael Torrie via Python-list
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

Re: Formatted Integer With Specified Number Of Digits

2025-10-26 Thread Michael Torrie via Python-list
or negative numbers the padding would have to be Fs instead of 0s. -- https://mail.python.org/mailman3//lists/python-list.python.org

zipapp: add compression (method), compresslevel options from Zipfile

2025-11-09 Thread Mingye Wang via Python-list
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 zipfi

Re: Proposal to update Unicode handling for German sharp S (ß / ẞ) in Python’s case conversion methods

2025-10-22 Thread Michael Torrie via Python-list
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

Conda create with python version fails me

2025-11-13 Thread Martin Schöön via Python-list
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

Re: Conda create with python version fails me

2025-11-14 Thread Martin Schöön via Python-list
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

Re: Conda create with python version fails me

2025-11-17 Thread Martin Schöön via Python-list
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: >>

Re: Sending FDs over UNIX domain sockets

2025-11-15 Thread Grant Edwards via Python-list
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

Fwd: zipapp: add compression (method), compresslevel options from Zipfile

2025-11-17 Thread Mingye Wang via Python-list
sting zipapp.py. You can just run it with "python zipapp.py". I've tried using it to make zstd and stored archives. Tangential: the zip file format compresses each file separately, which reduces the potential for good compression compared to "solid" formats like .tar.gz. We

Proposal: private keyword for import statements to hide module dependencies

2025-11-21 Thread Bjørnar Remmen via Python-list
7;'' Internally in the file np is accesible, but when importing the file it is not accesible. Expected behaviour: import module.math module.math.np This raises an AttributeError from module.math import np raises an ImportError from module.math import calculate_mean Succeeds -- https://mail.python.org/mailman3//lists/python-list.python.org

advice for inventory software

2017-11-30 Thread Brian J. Oney via Python-list
Dear Python scripters, I am writing modules for my insectary (for food), the processes of which I plan to mostly automate. Currently, inventory and the traceability of material flows is my focus. My best idea (yet) for making things as simple as possible consists of a debian server hooked up

Re: Python Templating Language

2017-12-17 Thread Brian J. Oney via Python-list
I am not exactly sure what you mean, so I will guess. Jinja may be what you're looking for. It's an important component of flask & ansible, for example. pyweave may also serve your purposes. HTH -- https://mail.python.org/mailman/listinfo/python-list

Problem with coroutines old-style / new-style usage and features

2018-02-01 Thread Yahya Abou 'Imran via Python-list
le to solve it myself. Any thoughts about it? Thanks! -- https://mail.python.org/mailman/listinfo/python-list

Re: Problem with coroutines old-style / new-style usage and features

2018-02-01 Thread Yahya Abou 'Imran via Python-list
ou're right... I was just, you know... "Async is so cool, let's just async everything!" >If it were a class, then you could make the individual methods be > coroutines if desired and await those. Thanks for your advise Ian! -- https://mail.python.org/mailman/listinfo/python-list

Spam levels.

2018-02-10 Thread C W Rose via Python-list
a complete narcissistic moron." -- H. L. Mencken. -- https://mail.python.org/mailman/listinfo/python-list

Respam levels.

2018-02-13 Thread C W Rose via Python-list
ve now filtered news.bbs.geek.nz from my feed. Will -- "When we look around us, this is what we find, The hope that springs eternal, springs right up your behind." -- Ian Dury -- https://mail.python.org/mailman/listinfo/python-list

Re: error of opening Python

2022-05-02 Thread ARRYAN SINHA (RA1811029010036) via Python-list
On Friday, April 15, 2022 at 2:17:28 AM UTC+5:30, Andrew Hernandez wrote: > that is not an error, its simply the python console intrepeter how do I open this file -- https://mail.python.org/mailman/listinfo/python-list

F-string usage in a print()

2022-05-24 Thread Kevin M. Wilson via Python-list
e??? Caddy Man Good sense makes one slow to anger, and it is his glory tooverlook an offense. Proverbs 19:11 -- https://mail.python.org/mailman/listinfo/python-list

Re: Conecting to MySQL

2022-08-09 Thread Dan Ciprus (dciprus) via Python-list
ither not running or you have a problem with the configuration. On Tue, Aug 09, 2022 at 08:27:16AM -0700, Axy via Python-list wrote: trying to connect to MYSQL it appears the error msg below: InterfaceError: 2003: Can't connect to MySQL server on 'localhost:3306' (111 Connec

Re: Conecting to MySQL

2022-08-09 Thread Dan Ciprus (dciprus) via Python-list
that your question? [image: image.png] [image: image.png] Em ter., 9 de ago. de 2022 às 12:36, Igor Korot escreveu: Hi, @OP, Can you try to connect with mysql-workbench? Also - you didn't answer my first question. Are you using an ODBC wrapper or python module? Thank you. On Tue, Aug

not able to use python

2022-08-17 Thread i am unable to use python
    Sent from [1]Mail for Windows   References Visible links 1. https://go.microsoft.com/fwlink/?LinkId=550986 -- https://mail.python.org/mailman/listinfo/python-list

Re: not able to use python

2022-08-17 Thread Dan Ciprus (dciprus) via Python-list
Those people keep me on my toes every time I look at such a message :-/. On Wed, Aug 17, 2022 at 12:35:28PM -0500, Igor Korot wrote: Hi, On Wed, Aug 17, 2022 at 12:20 PM i am unable to use python wrote: AND I"M UNABLE TO SEE ANYTHING IN YOUR MESSAGE... THANK YOU. Sent fr

ImportError: No module named spambayes.resources (line 12 of setup_all.py)

2022-08-24 Thread Erik M. Brown via Python-list
Is anyone here familiar with SpamBayes? I am working with legacy 2.4.x Python code (I'm not a programmer, more of a power user) and I'm attempting to build the windows binary from the SpamBayes source. I'm running into an error when attempting to run "setup_all.py"

Python is not working on my desktop

2022-09-19 Thread python 3 . 0 is not working
    Sent from [1]Mail for Windows   References Visible links 1. https://go.microsoft.com/fwlink/?LinkId=550986 -- https://mail.python.org/mailman/listinfo/python-list

Help, PyCharm fails to recognize my tab setting...See attached picture of the code.

2022-10-10 Thread Kevin M. Wilson via Python-list
ror: expected an indented block after 'if' statement on line 29 Process finished with exit code 1 Good sense makes one slow to anger, and it is his glory tooverlook an offense. Proverbs 19:11 -- https://mail.python.org/mailman/listinfo/python-list

Pycharm IDE

2023-04-18 Thread Kevin M. Wilson via Python-list
    Isaiah 43:2 | | Virus-free.www.avg.com | -- https://mail.python.org/mailman/listinfo/python-list

Re: Pycharm IDE

2023-04-18 Thread Kevin M. Wilson via Python-list
version says it expects ' first (to close the fstring) then on a new line below it, it mentions the comma and ) I believe that is just showing you after ' it expects you to end the print with ) as you have or , to add additional arguments to print -- https://mail.python.org/mailman/list

Re: Pycharm IDE

2023-04-18 Thread Kevin M. Wilson via Python-list
u: and when you pass through the rivers, they will not sweep over you. When you walk through the fire, you will not be burned: the flames will not set you ablaze."      Isaiah 43:2 On Tuesday, April 18, 2023 at 11:17:52 PM MDT, Kevin M. Wilson via Python-list wrote: print (f'

PyCharm's strict PEP and not so strict?

2023-04-19 Thread Kevin M. Wilson via Python-list
ot;      Isaiah 43:2 | | Virus-free.www.avg.com | -- https://mail.python.org/mailman/listinfo/python-list

Editing PEP-8, in particular "expected 2 blanks, found 1

2023-05-02 Thread Kevin M. Wilson via Python-list
walk through the fire, you will not be burned: the flames will not set you ablaze."      Isaiah 43:2 | | Virus-free.www.avg.com | -- https://mail.python.org/mailman/listinfo/python-list

Disable 'style PEP' messages

2023-05-04 Thread Kevin M. Wilson via Python-list
saiah 43:2 | | Virus-free.www.avg.com | -- https://mail.python.org/mailman/listinfo/python-list

Three (3) >>> in the debug screen of PyCharm... Que Es over?!!

2023-05-04 Thread Kevin M. Wilson via Python-list
python.org/mailman/listinfo/python-list

Invalid literal for int() with base 10?

2023-05-25 Thread Kevin M. Wilson via Python-list
of said code. "When you pass through the waters, I will be with you: and when you pass through the rivers, they will not sweep over you. When you walk through the fire, you will not be burned: the flames will not set you ablaze."      Isaiah 43:2 -- https://mail.python.org/mailman/listinfo/python-list

From geeksforgeeks.org, on converting the string created by the input() to an INT

2023-05-25 Thread Kevin M. Wilson via Python-list
5'))) | "When you pass through the waters, I will be with you: and when you pass through the rivers, they will not sweep over you. When you walk through the fire, you will not be burned: the flames will not set you ablaze."      Isaiah 43:2 -- https://mail.python.org/mailman/listinfo/python-list

Re: Invalid literal for int() with base 10?

2023-05-25 Thread Kevin M. Wilson via Python-list
e."      Isaiah 43:2 On Thursday, May 25, 2023 at 05:55:06 PM MDT, Kevin M. Wilson via Python-list wrote: Ok, I'm not finding any info. on the int() for converting a str to an int (that specifies a base parameter)?! The picture is of the code I've written... And the

Re: Assistance Request - Issue with Installing 'pip' despite Python 3.10 Installation

2023-06-08 Thread Dennis Lee Bieber via Python-list
\site-packages\pipenv\patched\pip Lib\site-packages\pipenv\utils\pip.py Lib\site-packages\pipenv\utils\__pycache__\pip.cpython-310.pyc PS C:\Users\Owner> -=-=- I've just run the installer -- python-3.10.11-amd64.exe -- as admin, in "repair" mode! There is NO pip.exe under

Re: Assistance Request - Issue with Installing 'pip' despite Python 3.10 Installation

2023-06-09 Thread Dennis Lee Bieber via Python-list
On Thu, 8 Jun 2023 17:22:22 -0400, Thomas Passin declaimed the following: >On 6/8/2023 3:14 PM, Dennis Lee Bieber via Python-list wrote: > C:\Users\Owner> >> -=-=- >> Windows PowerShell >> Copyright (C) Microsoft Corporation. All rights reserved. >> >>

Re: Assistance Request - Issue with Installing 'pip' despite Python 3.10 Installation

2023-06-11 Thread Dennis Lee Bieber via Python-list
On Sat, 10 Jun 2023 11:32:53 -0500, Eryk Sun declaimed the following: >On 6/10/23, Thomas Passin via Python-list wrote: >> >> We can find pip.exe using good old-fashioned dir (we don't need any >> new-fangled Powershell): >> >> C:\Users\tom>dir AppData

Re: Bug in io.TextIOWrapper?

2023-06-19 Thread Peter J. Holzer via Python-list
On 2023-06-20 02:15:00 +0900, Inada Naoki via Python-list wrote: > stream.flush() doesn't mean final output. > Try stream.close() After close() the value isn't available any more: Python 3.11.2 (main, Mar 13 2023, 12:18:29) [GCC 12.2.0] on linux Type "help", "co

Where is the error?

2023-08-06 Thread Peter J. Holzer via Python-list
Mostly, error messages got a lot better in Python 3.10, but this one had me scratching my head for a few minutes. Consider this useless and faulty script: r = { "x": (1 + 2 + 3) "y": (4 + 5 + 6)

Re: Using "textwrap" package for unwrappable languages (Japanese)

2023-08-30 Thread Peter J. Holzer via Python-list
On 2023-08-30 11:32:02 +, c.buhtz--- via Python-list wrote: > I do use "textwrap" package to wrap longer texts passages. Works well with > English. > But the source string used is translated via gettext before it is wrapped. > > Using languages like Japanese or Chi

Re: Using "textwrap" package for unwrappable languages (Japanese)

2023-08-30 Thread Peter J. Holzer via Python-list
On 2023-08-30 13:18:25 +, c.buhtz--- via Python-list wrote: > Am 30.08.2023 14:07 schrieb Peter J. Holzer via Python-list: > > another caveat: Japanese characters are usually double-width. So > > (unless your line length is 130 characters for English) you would > > want t

Re: What sort of exception when a class can't find something?

2023-08-31 Thread Peter J. Holzer via Python-list
On 2023-08-31 21:32:04 +0100, Chris Green via Python-list wrote: > What sort of exception should a class raise in __init__() when it > can't find an appropriate set of data for the parameter passed in to > the class instantiation? > > E.g. I have a database with some names and

Passing info to function used in re.sub

2023-09-03 Thread Jan Erik Moström via Python-list
) The "problem" is that I've currently written some code that works but it uses global variables ... and I don't like global variables. I assume there is a better way to write this, but how? = jem -- https://mail.python.org/mailman/listinfo/python-list

Re: Passing info to function used in re.sub

2023-09-03 Thread Jan Erik Moström via Python-list
On 3 Sep 2023, at 19:13, MRAB via Python-list wrote: > You could use pass an anonymous function (a lambda) to re.sub: Of course !! Thanks. = jem -- https://mail.python.org/mailman/listinfo/python-list

Re: Passing info to function used in re.sub

2023-09-04 Thread Peter J. Holzer via Python-list
On 2023-09-03 18:10:29 +0200, Jan Erik Moström via Python-list wrote: > I want to replace some text using a regex-pattern, but before creating > replacement text I need to some file checking/copying etc. My code > right now look something like this: > > def fix_stuff(m): >

Re: Passing info to function used in re.sub

2023-09-05 Thread Jan Erik Moström via Python-list
On 3 Sep 2023, at 18:10, Jan Erik Moström via Python-list wrote: > I'm looking for some advice for how to write this in a clean way Thanks for all the suggestion, I realize that I haven't written Python code in a while. I should have remembered this myself !!! Thanks for remindi

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