[Python-Dev] Re: Alternative syntax for Python's lambda

2021-03-25 Thread Dan Stromberg
Please see https://lwn.net/Articles/847960/ :) On Thu, Mar 25, 2021 at 2:34 PM Ethan Furman wrote: > On 3/25/21 1:06 PM, Dan Stromberg wrote: > > > > I posted this to LWN, and thought I'd share it here too: > > This post is nearly completely devoid of context -- could you post a link, > or

[Python-Dev] OpenSSL 1.1.1k CVE fixes

2021-03-25 Thread Christian Heimes
Hi, OpenSSL released 1.1.1k today with two high severity CVEs, https://www.openssl.org/news/vulnerabilities.html The ssl module is not affected by CVE-2021-3450 in its default configuration. Python does not set X509_V_FLAG_X509_STRICT on SSLContext. Only applications that that use

[Python-Dev] Re: New public C API functions must not steal references or return borrowed references

2021-03-25 Thread Erlend Aasland
Glad to help! Thank you Guido, Antoine, Serhiy, and Victor for your insights and scrutinising :) E On 25 Mar 2021, at 18:15, Guido van Rossum mailto:gu...@python.org>> wrote: I’m glad there is more clarity here. And thanks to Erlend Egeberg Aasland for championing the PR! —Guido On Thu,

[Python-Dev] Re: Alternative syntax for Python's lambda

2021-03-25 Thread Ethan Furman
On 3/25/21 1:06 PM, Dan Stromberg wrote: I posted this to LWN, and thought I'd share it here too: This post is nearly completely devoid of context -- could you post a link, or what you are responding to, or something? -- ~Ethan~ ___ Python-Dev

[Python-Dev] Alternative syntax for Python's lambda

2021-03-25 Thread Dan Stromberg
I posted this to LWN, and thought I'd share it here too: I'm opposed to terse-ifying lambda in Python. Lambda is rarely useful in Python - you're almost always better off using a generator expression, a list comprehension, or something from the operator module. And lambdas tend to give rise to

[Python-Dev] Re: New public C API functions must not steal references or return borrowed references

2021-03-25 Thread Mark Shannon
Hi Victor, I'm with you 100% on not returning borrowed references, doing so is just plain dangerous. However, is a blanket ban on stealing references the right thing? Maybe the problem is the term "stealing". The caller is transferring the reference to the callee. In some circumstances it

[Python-Dev] Re: How about using modern C++ in development of CPython ?

2021-03-25 Thread Christian Heimes
On 25/03/2021 18.39, Antoine Pitrou wrote: > On Thu, 25 Mar 2021 20:22:55 +0300 > Ivan Pozdeev via Python-Dev wrote: >> On 24.03.2021 19:58, Antoine Pitrou wrote: >>> On Wed, 24 Mar 2021 19:45:49 +0300 >>> Ivan Pozdeev via Python-Dev wrote: How does C++ fare in binary compatibility? Last

[Python-Dev] Re: How about using modern C++ in development of CPython ?

2021-03-25 Thread Antoine Pitrou
On Thu, 25 Mar 2021 20:22:55 +0300 Ivan Pozdeev via Python-Dev wrote: > On 24.03.2021 19:58, Antoine Pitrou wrote: > > On Wed, 24 Mar 2021 19:45:49 +0300 > > Ivan Pozdeev via Python-Dev wrote: > >> How does C++ fare in binary compatibility? Last time I checked it out > >> (about 10 years

[Python-Dev] Re: How about using modern C++ in development of CPython ?

2021-03-25 Thread Ivan Pozdeev via Python-Dev
On 24.03.2021 19:58, Antoine Pitrou wrote: On Wed, 24 Mar 2021 19:45:49 +0300 Ivan Pozdeev via Python-Dev wrote: How does C++ fare in binary compatibility? Last time I checked it out (about 10 years ago), there was completely none, every compiler's ABI was a black box without any guarantees

[Python-Dev] Re: New public C API functions must not steal references or return borrowed references

2021-03-25 Thread Guido van Rossum
I’m glad there is more clarity here. And thanks to Erlend Egeberg Aasland for championing the PR! —Guido On Thu, Mar 25, 2021 at 09:30 Victor Stinner wrote: > Hi, > > A new Include/README.rst file was just added to document the 3 C API > provided by CPython: > > * Include/: Limited C API > *

[Python-Dev] New public C API functions must not steal references or return borrowed references

2021-03-25 Thread Victor Stinner
Hi, A new Include/README.rst file was just added to document the 3 C API provided by CPython: * Include/: Limited C API * Include/cpython/: CPython implementation details * Include/internal/: The internal API I would like to note that *new* public C API functions must no longer steal references

[Python-Dev] Re: Steering Council reply regarding conduct (was Re: Steering Council update for February)

2021-03-25 Thread Brian Herman
Maybe we can change the discussion to something more productive like the python module system or anything else? ___ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le...@python.org

[Python-Dev] Re: On the migration from master to main

2021-03-25 Thread Stefano Borini
On Tue, 23 Mar 2021 at 21:39, Python Steering Council wrote: > This isn’t just about ‘master’ being rooted in slavery. No it's not and I am shocked that such ignorance would exist to believe that. -- Kind regards, Stefano Borini ___ Python-Dev