Re: Compiling python on windows with vs

2023-06-15 Thread Eryk Sun via Python-list
On 6/15/23, Thomas Schweikle via Python-list wrote: > > In this case: not sure what is going on. Possibly you have a setting configured that affects the behavior of Git via the MinGW-w64 runtime, such that calling mkdir() ends up calling NtSetInformationFile() to s

Re: Compiling python on windows with vs

2023-06-15 Thread Thomas Schweikle via Python-list
it is not a bug that current Python doesn't support building on case sensitive directory. But I think it is a nice improvement if next Python supports it. Python itself isn't the problem here. It is MSBuild.exe. For some reason this tool lowercases sometimes whole paths to files includ

Re: Compiling python on windows with vs

2023-06-15 Thread Thomas Schweikle via Python-list
Am Do., 15.Juni.2023 um 16:28:21 schrieb Eryk Sun: On 6/15/23, Thomas Schweikle via Python-list wrote: In this case: not sure what is going on. Possibly you have a setting configured that affects the behavior of Git via the MinGW-w64 runtime, such that calling mkdir() ends up calling

Re: Compiling python on windows with vs

2023-06-15 Thread Eryk Sun via Python-list
On 6/15/23, Thomas Schweikle via Python-list wrote: > > No. This flag is not inherited. Someone has to set it for created > directories. It is easy to confirm: take a directory not under MSYS or > cygwin control (because it is mounted by MSYS or cygwin), set the flag, > then cre

Re: Enum + new in 3.11

2023-06-16 Thread Thomas Passin via Python-list
On 6/16/2023 1:40 AM, dn via Python-list wrote: Have you figured-out a use for the @enum.member and @enum.nonmember decorators (new in Python 3.11)? "What's New" says: Added the member() and nonmember() decorators, to ensure the decorated object is/is not converted to an enu

Re: Enum + new in 3.11

2023-06-16 Thread Thomas Passin via Python-list
On 6/16/2023 7:37 PM, dn via Python-list wrote: On 16/06/2023 23.47, Thomas Passin via Python-list wrote: On 6/16/2023 1:40 AM, dn via Python-list wrote: Have you figured-out a use for the @enum.member and @enum.nonmember decorators (new in Python 3.11)? mypy is having trouble with 3.11

File system path annotations

2023-06-19 Thread Peter Slížik via Python-list
ke the annotation quite long. I also believe that str confirms to the PathLike definition. Please, correct me if I'm wrong. And finally - using paths in Python programs is so common, that one would expect to have a special type (or type alias) in typing. Am I missing something? My apologies if I&#

Re: File system path annotations

2023-06-19 Thread Roel Schroeven via Python-list
Op 19/06/2023 om 10:43 schreef Peter Slížik via Python-list: Hello, what is the preferred way of annotating file system paths? This StackOverflow answer <https://stackoverflow.com/a/58541858/1062139> (and a few others) recommend using the str | os.PathLike union. However, byte arrays

Re: File system path annotations

2023-06-19 Thread Peter Slížik via Python-list
Thank you, Roel. You've answered all my questions. > [PEP 519]: ...as that can be represented with typing.Union[str, bytes, os.PathLike] easily enough and the hope is users > will slowly gravitate to path objects only. I read a lot on Python and, frankly, I don't see this happ

Re: File system path annotations

2023-06-19 Thread Roel Schroeven via Python-list
Op 19/06/2023 om 11:44 schreef Peter Slížik: Thank you, Roel. You've answered all my questions. > [PEP 519]: ...as that can be represented with typing.Union[str, bytes, os.PathLike] easily enough and the hope is users > will slowly gravitate to path objects only. I read a lot on

Re: File system path annotations

2023-06-19 Thread Thomas Passin via Python-list
On 6/19/2023 10:04 AM, Roel Schroeven via Python-list wrote: Op 19/06/2023 om 11:44 schreef Peter Slížik: Thank you, Roel. You've answered all my questions. > [PEP 519]: ...as that can be represented with typing.Union[str, bytes, os.PathLike] easily enough and the hope is users >

Should NoneType be iterable?

2023-06-19 Thread Peter Bona via Python-list
#x27; object is not iterable'. (Examples are taken from here https://rollbar.com/blog/python-typeerror-nonetype-object-is-not-iterable/) Example 1: mylist = None for x in mylist: print(x) <== will raise TypeError: 'NoneType' object is not iterable Solution: extra If statement

Re: Should NoneType be iterable?

2023-06-19 Thread Chris Angelico via Python-list
On Tue, 20 Jun 2023 at 02:37, Peter Bona via Python-list wrote: > > Hi > > I am wondering if there has been any discussion why NoneType is not iterable > My feeling is that it should be. > Sometimes I am using API calls which return None. > If there is a return value (wh

Bug in io.TextIOWrapper?

2023-06-19 Thread Jon Ribbens via Python-list
iously using the 'idna' wrapper as an encoding on a stream is a bit unlikely, but nevertheless any other codec which cares about the 'final' parameter will also have this problem. -- https://mail.python.org/mailman/listinfo/python-list

Re: Bug in io.TextIOWrapper?

2023-06-19 Thread Inada Naoki via Python-list
stream.flush() doesn't mean final output. Try stream.close() 2023年6月20日(火) 1:40 Jon Ribbens via Python-list : > io.TextIOWrapper() wraps a binary stream so you can write text to it. > It takes an 'encoding' parameter, which it uses to look up the codec > in the codecs re

Re: Bug in io.TextIOWrapper?

2023-06-19 Thread Inada Naoki via Python-list
You can use file instead of BytesIO 2023年6月20日(火) 3:05 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 availa

Re: Bug in io.TextIOWrapper?

2023-06-19 Thread Inada Naoki via Python-list
y for now. -- https://mail.python.org/mailman/listinfo/python-list

Re: Should NoneType be iterable?

2023-06-19 Thread Neal Becker via Python-list
On Mon, Jun 19, 2023 at 12:42 PM Chris Angelico via Python-list < [email protected]> wrote: > On Tue, 20 Jun 2023 at 02:37, Peter Bona via Python-list > wrote: > > > > Hi > > > > I am wondering if there has been any discussion why NoneType is not > i

Re: Bug in io.TextIOWrapper?

2023-06-19 Thread Jon Ribbens via Python-list
ose. -- https://mail.python.org/mailman/listinfo/python-list

Attaching a mock function to another mock breaks reset_mock()

2023-06-19 Thread Mark Bourne via Python-list
I've came across an issue with attaching a mock function to another mock object. It looks like this might be a bug in unittest.mock, but it's possible I'm misunderstanding or doing something wrong. I'm currently using Python 3.8.10, which is the default installed on Ub

Re: Should NoneType be iterable?

2023-06-19 Thread Greg Ewing via Python-list
I would question the wisdom of designing an API that can return either a sequence or None. If it normally returns a sequence, and there are no items to return, it should return an empty sequence. -- Greg -- https://mail.python.org/mailman/listinfo/python-list

Re: Should NoneType be iterable?

2023-06-20 Thread Greg Ewing via Python-list
rather than blindly trying to iterate over the result. -- Greg -- https://mail.python.org/mailman/listinfo/python-list

[RELEASE] Python 3.12.0 beta 3 released

2023-06-20 Thread Thomas Wouters via Python-list
We’re getting close! 3.12.0 beta 3 has been released: https://www.python.org/downloads/release/python-3120b3/ *This is a beta preview of Python 3.12* Python 3.12 is still in development. This release, 3.12.0b3, is the third of four beta release previews of 3.12. Beta release previews are

Re: [RELEASE] Python 3.12.0 beta 3 released

2023-06-20 Thread Fulian Wang via Python-list
學習,有所安息,也歡迎分享於其他人,並幫助Hestates.org更好! ''' return [hestates.encode()] httpd = wsgiref.simple_server.make_server('', 8000, application) httpd.serve_forever() Sent from Mail<https://go.microsoft.com/fwlink/?LinkId=550986> for Windows Get Outlook for iOS<https:/

Re: Should NoneType be iterable?

2023-06-20 Thread Igor Berger via Python-list
On Monday, June 19, 2023 at 4:11:15 PM UTC-4, Julio Di Egidio wrote: > On Monday, 19 June 2023 at 21:58:21 UTC+2, dn wrote: > > On 20/06/2023 06.12, Neal Becker via Python-list wrote: > > > > I prefer iteration of None to be an error, as in my usage it usually > >

Re: Should NoneType be iterable?

2023-06-20 Thread Roel Schroeven via Python-list
Op 20/06/2023 om 2:50 schreef Greg Ewing via Python-list: I would question the wisdom of designing an API that can return either a sequence or None. If it normally returns a sequence, and there are no items to return, it should return an empty sequence. I guess it depends on the reason why there

Re: How to add CC and BCC while sending mails using python

2023-06-20 Thread sonam Kumari via Python-list
c's and bcc's while sending mails using > > > python > > > > Following (tested) snippet should help: > > > > -- 8< -- > > from smtplib import SMTP > > from email.mime.image import MIMEImage > >

Re: Should NoneType be iterable?

2023-06-20 Thread Chris Angelico via Python-list
On Wed, 21 Jun 2023 at 03:46, Igor Berger via Python-list wrote: > Most of the regulars in this list/group read the posts using the mailing list > and > have declared that they explicitly filter out anything posted on Google > Groups. > > I've seen it multiple times with

Re: How to add CC and BCC while sending mails using python

2023-06-20 Thread Roel Schroeven via Python-list
sonam Kumari via Python-list schreef op 20/06/2023 om 9:49: > > I've tried the above code and the bcc address does not receive the message, on the To & CC addresses receive it. > > Here are snippets from my code, perhaps something will stand out to you? > > to = &

Re: Should NoneType be iterable?

2023-06-20 Thread Cameron Simpson via Python-list
And of course I'm very -1 on None acquiring iteration or other features. Fail early, fail often! Cheers, Cameron Simpson -- https://mail.python.org/mailman/listinfo/python-list

Re: Should NoneType be iterable?

2023-06-20 Thread Chris Angelico via Python-list
On Wed, 21 Jun 2023 at 09:59, Cameron Simpson via Python-list wrote: > I wasted some time the other evening on an API which returned a string > or None. My own API, and the pain it caused tells me that that API > design choice isn't good (it's an automatic attribute based on

Re: Should NoneType be iterable?

2023-06-20 Thread Cameron Simpson via Python-list
On 21Jun2023 10:09, Chris Angelico wrote: On Wed, 21 Jun 2023 at 09:59, Cameron Simpson via Python-list wrote: I wasted some time the other evening on an API which returned a string or None. My own API, and the pain it caused tells me that that API design choice isn't good (it's an

What is this TEST BANK stuff ?

2023-06-21 Thread Dan Kolis via Python-list
https://mail.python.org/mailman/listinfo/python-list

TKinter in Python - advanced notions

2023-06-21 Thread Dan Kolis via Python-list
Hi, I've write a huge biotech program ( an IDE for synthetic biology ), and am slowly outgrowing TKINTER. Has anybody out there merged a little bit of TCL direct calls from Python 3.X to get more freedom then TKINTER for just some Windows ? How about bold stories of successes ( yours

Python Issue

2023-06-21 Thread Pickle Pork via Python-list
Python is unable to open. Exit Code: 1 -- https://mail.python.org/mailman/listinfo/python-list

Re: What is this TEST BANK stuff ?

2023-06-21 Thread Chris Angelico via Python-list
On Thu, 22 Jun 2023 at 02:54, Dan Kolis via Python-list wrote: > > Why do we tolerate this spam ? > > this seems most likely a way to inject viruses into people's workflow. > > That wiped out usenet. Ahh without an explaination; ( and it woudl have to be > a good one

Re: What is this TEST BANK stuff ?

2023-06-21 Thread Grant Edwards via Python-list
On 2023-06-21, Chris Angelico via Python-list wrote: > On Thu, 22 Jun 2023 at 02:54, Dan Kolis via Python-list > wrote: >> >> Why do we tolerate this spam ? >> >> this seems most likely a way to inject viruses into people's workflow. >> >> That wiped

Re: Email list and part of website code

2023-06-22 Thread Fulian Wang via Python-list
A little confused about that I got the email list different. Sometimes has names and email address displayed on it, sometimes not . If I don’t follow the new list, just type [email protected] It's another different one with different name on it. that confuse me to know which one i

Re: TKinter in Python - advanced notions

2023-06-22 Thread Diego Souza via Python-list
a small project such as the code you showed, but I recommend it for larger projects. On Wed, Jun 21, 2023 at 7:20 PM aapost via Python-list < [email protected]> wrote: > On 6/21/23 09:47, Dan Kolis wrote: > > I've write a huge biotech program ( an IDE for synthetic

RE: TKinter in Python - advanced notions

2023-06-23 Thread Andreas Heckel via Python-list
Hi, Apologies for potentially mis-using this thread. But I have been struggling recently making exactly this leap from simple GUI examples to a more elaborate MVVM concept. Mainly I have been struggling finding nice example python code bases, that allow some understanding to the beginner

Re: TKinter in Python - advanced notions

2023-06-23 Thread Dan Kolis via Python-list
://mail.python.org/mailman/listinfo/python-list

Re: TKinter in Python - advanced notions - reactive

2023-06-23 Thread Dan Kolis via Python-list
it react. Regards, thanks, Dan -- https://mail.python.org/mailman/listinfo/python-list

Re: TKinter in Python - advanced notions

2023-06-23 Thread Thomas Passin via Python-list
On 6/23/2023 4:16 AM, Andreas Heckel via Python-list wrote: Hi, Apologies for potentially mis-using this thread. But I have been struggling recently making exactly this leap from simple GUI examples to a more elaborate MVVM concept. Mainly I have been struggling finding nice example python

Re: TKinter in Python - advanced notions

2023-06-23 Thread Chris Angelico via Python-list
On Sat, 24 Jun 2023 at 15:57, Thomas Passin via Python-list wrote: > As a general comment (and I have not done anything tricky or complex > with Tk), MVC or the other approaches in a similar vein, though good, > can lead you into more complexity than you need, because of the extra >

Trouble with defaults and timeout decorator

2023-06-24 Thread Jason Friedman via Python-list
defined -- https://mail.python.org/mailman/listinfo/python-list

unable to run the basic Embedded Python example

2023-06-24 Thread Dave Ohlsson via Python-list
I cannot get the simple program https://docs.python.org/3/extending/embedding.html#very-high-level-embedding to work. My environment: * Windows 10 * Microsoft Visual Studio 2019 * Qt Creator 10.0.1 (only as an IDE) * Python not installed This is what I did: 1. I downloaded https

Re: Trouble with defaults and timeout decorator

2023-06-24 Thread Piergiorgio Sartor via Python-list
with: NameError: name 'self' is not defined A quick search would return that "self" is not available in the class body, only in the class methods. There are workarounds, but I guess not simple ones, expecially for "timeout". bye, -- piergiorgio -- https://mail

TKinter in Python - advanced notions - ok

2023-06-24 Thread Dan Kolis via Python-list
f: 24 Jun 2023, https://groups.google.com/g/comp.lang.python/ -- https://mail.python.org/mailman/listinfo/python-list

Re: unable to run the basic Embedded Python example

2023-06-24 Thread Fulian Wang via Python-list
I study computer science in byu.edu, we choose the 3.4.3 vision. No matter which kind of computers or windows, I needed to download it from Microsoft store. Now I can download it directly from python.org Get Outlook for iOS<https://aka.ms/o0ukef> From:

Re: unable to run the basic Embedded Python example

2023-06-24 Thread Fulian Wang via Python-list
_ From: Fulian Wang Sent: Saturday, June 24, 2023 7:43:56 PM To: Dave Ohlsson ; [email protected] Subject: Re: unable to run the basic Embedded Python example I study computer science in byu.edu, we choose the 3.4.3 vision. No matter which kind of computers or windows, I needed to download i

Re: unable to run the basic Embedded Python example

2023-06-26 Thread Christian Gollwitzer via Python-list
debug\embedded_python.exe... Could not find platform independent libraries Python path configuration: PYTHONHOME = (not set) PYTHONPATH = (not set) program name = Python consists of the DLL that you have lined it with plus a large number of files (standard library) which contain, e.g., the encoding dat

my excel file is not updated to add new data

2023-06-26 Thread small marcc via Python-list
new data and writes the result to the Excel file. Finally, it displays a message that the backup was successful and closes the information window. I do not understand why it does not work, the new data is not displayed in excel when I am in python tkinter, my data in python must be displayed in

Re: my excel file is not updated to add new data

2023-06-26 Thread Thomas Passin via Python-list
On 6/26/2023 1:46 PM, small marcc via Python-list wrote: pandas.ExcelWriter import pandas This code creates the path to the Excel file where the data will be written. It checks if the file already exists, and if so, reads the existing data into a DataFrame. Otherwise, it creates a new empty

scipy.optimize.least_squares for more than one dimension?

2023-06-30 Thread Martin Schöön via Python-list
was burning midnight oil... TIA /Martin -- https://mail.python.org/mailman/listinfo/python-list

from __future__ import annotations bug?

2023-06-30 Thread Joseph Garvin via Python-list
l.python.org/mailman/listinfo/python-list

Re: from __future__ import annotations bug?

2023-06-30 Thread Joseph Garvin via Python-list
in that area in general and isn't always type annotation related, > but does this mean that even with PEP 649 that forward references will > still be needed? > -- https://mail.python.org/mailman/listinfo/python-list

Re: from __future__ import annotations bug?

2023-06-30 Thread Inada Naoki via Python-list
> but does this mean that even with PEP 649 that forward references will > still be needed? Yes. Both of PEP 563 and PEP 649 solves not all forward reference issues. -- Inada Naoki -- https://mail.python.org/mailman/listinfo/python-list

Multiple inheritance and a broken super() chain

2023-07-03 Thread Peter Slížik via Python-list
going on here? Thanks, Peter -- https://mail.python.org/mailman/listinfo/python-list

Re: Multiple inheritance and a broken super() chain

2023-07-03 Thread Richard Damon via Python-list
On 7/3/23 1:38 PM, Peter Slížik via Python-list wrote: Hello. The legacy code I'm working with uses a classic diamond inheritance. Let me call the classes *Top*, *Left*, *Right*, and *Bottom*. This is a trivial textbook example. The classes were written in the pre-super() era, so all of

Re: Multiple inheritance and a broken super() chain

2023-07-03 Thread Mats Wichmann via Python-list
On 7/3/23 12:01, Richard Damon via Python-list wrote: On 7/3/23 1:38 PM, Peter Slížik via Python-list wrote: Hello. The legacy code I'm working with uses a classic diamond inheritance. Let me call the classes *Top*, *Left*, *Right*, and *Bottom*. This is a trivial textbook example

Re: Multiple inheritance and a broken super() chain

2023-07-03 Thread Chris Angelico via Python-list
On Tue, 4 Jul 2023 at 03:39, Peter Slížik via Python-list wrote: > > Hello. > > The legacy code I'm working with uses a classic diamond inheritance. Let me > call the classes *Top*, *Left*, *Right*, and *Bottom*. > This is a trivial textbook example. The classes were wri

Re: Multiple inheritance and a broken super() chain

2023-07-03 Thread Mats Wichmann via Python-list
On 7/3/23 12:13, Mats Wichmann via Python-list wrote: To natter on a bit, and possibly muddy the waters even further... Now, as I see it, from the super()'s point of view, there are two inheritance chains, one starting at Left and the other at Right. But *Right.__init__()* is called twic

Re: Multiple inheritance and a broken super() chain

2023-07-04 Thread Peter Slížik via Python-list
ormatting of my code examples was completely removed; sorry for that. Best regards, Peter -- https://mail.python.org/mailman/listinfo/python-list

Re: Multiple inheritance and a broken super() chain

2023-07-04 Thread Chris Angelico via Python-list
On Tue, 4 Jul 2023 at 22:06, Peter Slížik via Python-list wrote: > > > > > Also, you might find that because of the MRO, super() in your Bottom > > class would actually give you what you want. > > > > I knew this, but I wanted to save myself some refactoring, as

Best practices for using super()

2023-07-04 Thread Peter Slížik via Python-list
This all works, but are there situations in which calling them explicitly using a parent class name is preferred? Best regards, Peter -- https://mail.python.org/mailman/listinfo/python-list

Re: Multiple inheritance and a broken super() chain

2023-07-04 Thread Alan Gauld via Python-list
On 03/07/2023 19:39, Chris Angelico via Python-list wrote: > On Tue, 4 Jul 2023 at 03:39, Peter Slížik via Python-list >> The legacy code I'm working with uses a classic diamond inheritance. > What happens when Top is initialized twice? This seems like a problem > waiting to

Re: Multiple inheritance and a broken super() chain

2023-07-04 Thread Chris Angelico via Python-list
On Wed, 5 Jul 2023 at 08:35, Alan Gauld via Python-list wrote: > > On 03/07/2023 19:39, Chris Angelico via Python-list wrote: > > On Tue, 4 Jul 2023 at 03:39, Peter Slížik via Python-list > >> The legacy code I'm working with uses a classic diamond inheritance. >

Re: Multiple inheritance and a broken super() chain

2023-07-04 Thread Greg Ewing via Python-list
rs in your ancestry. -- Greg -- https://mail.python.org/mailman/listinfo/python-list

Re: Multiple inheritance and a broken super() chain

2023-07-04 Thread Chris Angelico via Python-list
On Wed, 5 Jul 2023 at 10:31, Greg Ewing via Python-list wrote: > > On 5/07/23 10:33 am, Alan Gauld wrote: > > (*) C++ is the odd one out because it doesn't have GC, but then > > neither does it have an Object superclass so very often MI in C++ > > does not i

Re: Best practices for using super()

2023-07-05 Thread Lars Liedtke via Python-list
/grundsaetze-der-datenverarbeitung.php Am 04.07.23 um 14:20 schrieb Peter Slížik via Python-list: As a follow-up to my yesterday's question - are there any recommendations on the usage of super()? It's clear that super() can be used to invoke parent's: - instance methods -

Re: Multiple inheritance and a broken super() chain

2023-07-05 Thread Alan Gauld via Python-list
On 05/07/2023 01:27, Chris Angelico via Python-list wrote: >> So I'm curious about how big this "big problem with MI" is in > > Who said it's a big problem with MI? I think it's a very common perception, particularly with newer programmers who have ne

Re: What is this TEST BANK stuff ?

2023-07-06 Thread a a via Python-list
what is the purpsoe of this, why is it here ? > > Can it be eliminated ? > > Regards, > Dan Just call Google guys and ask, why usenet groups turned DejaNews, aquired by Google in the past are not protected against massive spam by a single easy script -- https://mail.python.org/mailman/listinfo/python-list

Re: What is this TEST BANK stuff ?

2023-07-06 Thread Chris Angelico via Python-list
On Fri, 7 Jul 2023 at 03:33, neopolitan via Python-list wrote: > > On 6/21/23 08:37, Dan Kolis wrote: > > Why do we tolerate this spam ? > > > > this seems most likely a way to inject viruses into people's workflow. > > > > That wiped out usenet. Ahh wit

Re: scipy.optimize.least_squares for more than one dimension?

2023-07-09 Thread Martin Schöön via Python-list
st_squares tonight. All simple examples I tried worked regardless of number of dimensions. I went back to my old code and found a couple of basic mistakes. Done. /Martin -- https://mail.python.org/mailman/listinfo/python-list

[RELEASE] Python 3.12.0 beta 4 released

2023-07-11 Thread Thomas Wouters via Python-list
Not much time left! I’ve released 3.12.0 beta 4. We’re now in the run-up to rc1, so keep that in mind when you backport to the 3.12 branch. https://www.python.org/downloads/release/python-3120b4/ *This is a beta preview of Python 3.12* Python 3.12 is still in development. This release, 3.12.0b4

Canonical list of Python security vulnerabilities

2023-07-14 Thread Bob Kline via Python-list
Can someone point me to the official catalog of security vulnerabilities in Python (by which I mean cpython and the standard libraries)? I found https://www.cvedetails.com/vulnerability-list/vendor_id-10210/product_id-18230/Python-Python.html but that isn't maintained by python.org. I also

Re: Canonical list of Python security vulnerabilities

2023-07-14 Thread Bob Kline via Python-list
On Fri, Jul 14, 2023 at 1:35 PM Bob Kline wrote: > Can someone point me to the official catalog of security vulnerabilities > in Python I did try entering "python security vulnerabilities" in the search box of the python.org web site, but what I got back was "No resu

Re: Canonical list of Python security vulnerabilities

2023-07-14 Thread Bob Kline via Python-list
On Fri, Jul 14, 2023 at 3:02 PM Barry wrote: > Where do you get your python from? Directly from python.org. > You may find that the organisation that packages python that you use has such > a list. That's my hope. Just haven't found it yet. :-} -- https://mail.python.o

Re: Canonical list of Python security vulnerabilities

2023-07-15 Thread Dieter Maurer via Python-list
Bob Kline wrote at 2023-7-14 13:35 -0400: >Can someone point me to the official catalog of security vulnerabilities in >Python (by which I mean cpython and the standard libraries)? I found >https://www.cvedetails.com/vulnerability-list/vendor_id-10210/product_id-18230/Python-Python.html

Setup-tools

2023-07-15 Thread YOUSEF EZZAT via Python-list
Hey!. i face a problem when i get setup packages by pip when i code this : "pip install numpy" in my command line it gives me error "ModuleNotFoundError: No module named 'distutils' " please, i need help for solving this problem. i have python 3.12.0

Re: Canonical list of Python security vulnerabilities

2023-07-15 Thread Bob Kline via Python-list
On Sat, Jul 15, 2023 at 1:02 PM Dieter Maurer wrote: > > I am active in the `Zope` community (a web application server > based on Python). This community has a security mailing list > for security related reports > and issues public CVE (= "Commun Vulnerabilities and Exposure

Working with paths

2023-07-16 Thread Peter Slížik via Python-list
str() as path: print("string") case bytes() as path: print("bytes") case os.PathLike() as path: print("os.PathLike") Should I branch on the individual types or is there a more elegant way? Peter -- https://mail.python.org/mailman/listinfo/python-list

Re: Setup-tools

2023-07-16 Thread Mats Wichmann via Python-list
On 7/15/23 12:56, MRAB via Python-list wrote: On 2023-07-15 07:12, YOUSEF EZZAT via Python-list wrote: Hey!. i face a problem when i get setup packages by pip when i code this : "pip install numpy" in my command line it gives me error "ModuleNotFoundError: No module n

Re: Working with paths

2023-07-16 Thread Kushal Kumaran via Python-list
as possible. In the main body of your code, it should be able to rely on all paths being Path objects. -- regards, kushal -- https://mail.python.org/mailman/listinfo/python-list

Announcement: distlib 0.3.7 released on PyPI

2023-07-17 Thread Vinay Sajip via Python-list
metadata. * Use version comparison logic for python_full_version. * Fix shebang computation for source builds of Python. * Extract tarfiles more safely by incorporating tarfile filters. * Check for 'has_cert' attribute before using it. * Fix #200: Improve conformance to PEP440. * Fix #2

pip-sync

2023-07-21 Thread Larry Martell via Python-list
I am trying to set up and maintain a venv with pip-sync. On my bare metal I have the apparmor python package installed, but it is not installed in my venv and it's not in my requirements file. When I run pip-sync I get: Found existing installation: apparmor 2.13.3 ERROR: Cannot unin

ANN: A new version (0.5.1) of python-gnupg has been released.

2023-07-22 Thread Vinay Sajip via Python-list
ons for improvement, or any other points via this group). Enjoy! Cheers Vinay Sajip [1] https://github.com/vsajip/python-gnupg [2] https://pypi.org/project/python-gnupg/0.5.1 [3] https://github.com/vsajip/python-gnupg/issues [4] https://github.com/vsajip/python-gnupg/releases/ [5] https://d

Re: ANN: A new version (0.5.1) of python-gnupg has been released.

2023-07-22 Thread Dan Sommers via Python-list
On 2023-07-22 at 11:04:35 +, Vinay Sajip via Python-list wrote: > What Changed? > = What changed, indeed. Maybe I'm old, and curmudgeonly, but it would be nice if the body of these annoucement emails (not just this one) contained the name of the program and a one-l

Meta Class Maybe?

2023-07-22 Thread Chris Nyland via Python-list
part of the third argument to types but that just doesn't feel very Python. This is all complicated by the fact that I am trying to avoid actually instancating any of these classes because their purpose is to be passed off to another framework to be executed. In real life most of the classes would

Re: Meta Class Maybe?

2023-07-23 Thread Dieter Maurer via Python-list
sed to check/update the newly created class. -- https://mail.python.org/mailman/listinfo/python-list

Re: pip-sync

2023-07-24 Thread Lars Liedtke via Python-list
eate the venv with --system-site-packages (at least that's the commandline option for pip) I only saw behaviour like this so far, when my venv was with --system-site-packages and a package was installed by the system. Cheers Lars Am 21.07.23 um 20:08 schrieb Larry Martell via Python-list: I

Re: pip-sync

2023-07-24 Thread Lars Liedtke via Python-list
D | VAT ID: DE234663798 Informationen zum Datenschutz | Information about privacy policy https://www.solute.de/ger/datenschutz/grundsaetze-der-datenverarbeitung.php Am 21.07.23 um 20:08 schrieb Larry Martell via Python-list: I am trying to set up and maintain a venv with pip-sync. On my bare metal I h

Re: pip-sync

2023-07-24 Thread Larry Martell via Python-list
On Fri, Jul 21, 2023 at 11:08 AM Larry Martell wrote: > > I am trying to set up and maintain a venv with pip-sync. On my bare > metal I have the apparmor python package installed, but it is not > installed in my venv and it's not in my requirements file. When I run > pip-s

Re: Meta Class Maybe?

2023-07-24 Thread Dom Grigonis via Python-list
> On 23 Jul 2023, at 02:12, Chris Nyland via Python-list > wrote: > > So I am stuck on a problem. I have a class which I want to use to create > another class without having to go through the boiler plate of subclassing. > Specifically because the subclass needs to

Odd types.get_original_bases() behavior for classes with generic bases but no type arguments

2023-07-24 Thread Chris Bouchard via Python-list
curses down a type's inheritance tree inspecting the original bases—I currently have to work around this behavior via hacks like checking "__orig_bases__" in cls.__dict__ or any(types.get_original_bases(cls) == types.get_original_bases(base) for base in cls.__bases__). (Unless I'm missing some simpler solution.) Is this something that could (should?) be addressed before 3.12 lands? Thanks, Chris Bouchard -- https://mail.python.org/mailman/listinfo/python-list

Re: Odd types.get_original_bases() behavior for classes with generic bases but no type arguments

2023-07-24 Thread Chris Bouchard via Python-list
Thanks, Chris Bouchard -- https://mail.python.org/mailman/listinfo/python-list

Fallback for operator and other dunder methods

2023-07-25 Thread Dom Grigonis via Python-list
erred evaluation— Dg -- https://mail.python.org/mailman/listinfo/python-list

Re: Fallback for operator and other dunder methods

2023-07-25 Thread Chris Angelico via Python-list
On Wed, 26 Jul 2023 at 12:23, Dom Grigonis via Python-list wrote: > print(a + 1)# TypeError: unsupported operand type(s) for +: 'A' > and 'int' > > Is there a way to achieve it without actually implementing operators? > I have looked at Proxy obje

Re: Fallback for operator and other dunder methods

2023-07-25 Thread Dom Grigonis via Python-list
Could you give an example? Something isn’t working for me. > On 26 Jul 2023, at 09:40, Chris Angelico via Python-list > wrote: > > On Wed, 26 Jul 2023 at 12:23, Dom Grigonis via Python-list > wrote: >> print(a + 1)# TypeError: unsupported operand type(s) fo

Re: Fallback for operator and other dunder methods

2023-07-26 Thread Chris Angelico via Python-list
want. ChrisA -- https://mail.python.org/mailman/listinfo/python-list

<    24   25   26   27   28   29   30   31   32   33   >