[Python-Dev] A proposal to modify `None` so that it hashes to a constant

2022-11-27 Thread Yoni Lavi
for such a change to take place. ___ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le...@python.org https://mail.python.org/mailman3/lists/python-dev.python.org/ Message archived at https://mail.python.org/archives

[Python-Dev] Python 3.12.0 alpha 2 released

2022-11-15 Thread Thomas Wouters
on contributions to the Python Software Foundation. Regards from chilly Amsterdam, Your release team, Thomas Wouters Ned Deily Steve Dower -- Thomas Wouters ___ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le...@p

[Python-Dev] Re: [CVE-2022-37454] SHA3 vulnerability and upcoming Python patches for 3.7 - 3.10

2022-11-11 Thread mark_topham--- via Python-Dev
Thank you all for your responses! Best, Mark ___ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le...@python.org https://mail.python.org/mailman3/lists/python-dev.python.org/ Message archived at https

[Python-Dev] August steering council update

2022-11-09 Thread Pablo Galindo Salgado
work to improve GitHub CI configs to make it more likely for users to test against release candidates and betas and to make it obvious how to do it. * The SC discussed the migration concerns raised from the proposed migration for PEP discussion from python-dev to discuss.python.org migration.

[Python-Dev] Re: [CVE-2022-37454] SHA3 vulnerability and upcoming Python patches for 3.7 - 3.10

2022-11-07 Thread Cameron Simpson
___ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le...@python.org https://mail.python.org/mailman3/lists/python-dev.python.org/ Message archived at https://mail.python.org/archives/list/python-dev@python.org/message/AOBBVHKUAFXSY3D6T5OK53PFB44ZWY4N/ Code

[Python-Dev] Re: [CVE-2022-37454] SHA3 vulnerability and upcoming Python patches for 3.7 - 3.10

2022-11-07 Thread Ned Deily
ot;, since as noted earlier 3.6 has reached end-of-life. (Of course, downstream distributors of Python 3.6 could choose to provide a patch for 3.6 for their users.) -- Ned Deily n...@python.org -- [] _______ Python-Dev mailing list -- python-dev@python.org

[Python-Dev] Re: [CVE-2022-37454] SHA3 vulnerability and upcoming Python patches for 3.7 - 3.10

2022-11-07 Thread Jelle Zijlstra
ase schedule" to get to such a PEP myself). > > You can now also use https://peps.python.org/topic/release/ to get all the release schedule PEPs. ___________ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le...@pyt

[Python-Dev] Re: [CVE-2022-37454] SHA3 vulnerability and upcoming Python patches for 3.7 - 3.10

2022-11-07 Thread Gregory P. Smith
also likely the only ones who would apply a backport to 3.6. Anything shipping Python <=3.8 or earlier *should* have an interest in patching. fwiw the forum I would've used for this is the github issue itself as that is the canonical discussion. -gps On Mon, Nov 7, 2022 at 11:52 AM mark_t

[Python-Dev] [CVE-2022-37454] SHA3 vulnerability and upcoming Python patches for 3.7 - 3.10

2022-11-07 Thread mark_topham--- via Python-Dev
be most helpful. If there is a more ideal forum to raise this question, please redirect me there. Thank you in advance ___ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le...@python.org https://mail.python.org

[Python-Dev] Re: NEWLINE sentinel behavior in CPython's PEG grammar

2022-11-03 Thread Pablo Galindo Salgado
re out how to hack in a NEWLINE rule and update my grammar ruleset. > _______ > Python-Dev mailing list -- python-dev@python.org > To unsubscribe send an email to python-dev-le...@python.org > https://mail.python.org/mailman3/lists/python-dev.python.org/ > Messag

[Python-Dev] Re: NEWLINE sentinel behavior in CPython's PEG grammar

2022-11-03 Thread David J W
riting a Rust version of Python for fun and I am at the parser >>>> stage of development. >>>> > >>>> > I copied and modified a PEG grammar ruleset from another open source >>>> project and I've already noticed some problems (ex Newline vs NL) with how >>>> they transcribed things.

[Python-Dev] TypedMapping structural type

2022-11-02 Thread Alice Purcell
then it would be a valid subtype of Response. This problem seems quite common, e.g. https://github.com/python/mypy/pull/12142. Pablo Galindo has agreed to sponsor a PEP. ___________ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to pyt

[Python-Dev] Re: NEWLINE sentinel behavior in CPython's PEG grammar

2022-10-27 Thread Matthieu Dartiailh
source >>> project and I've already noticed some problems (ex Newline vs NL) with how >>> they transcribed things. >>> > >>> > I am suspecting that CPython's grammar NEWLINE is a builtin rule for >>> the parser that is something like `(Newline+ | NL+ ) {NOP}` but wanted to >>> san

[Python-Dev] Re: NEWLINE sentinel behavior in CPython's PEG grammar

2022-10-26 Thread Matthias Görgens
ced some problems (ex Newline vs NL) with how >> they transcribed things. >> > >> > I am suspecting that CPython's grammar NEWLINE is a builtin rule for >> the parser that is something like `(Newline+ | NL+ ) {NOP}` but wanted to >> sanity check if that

[Python-Dev] Re: NEWLINE sentinel behavior in CPython's PEG grammar

2022-10-26 Thread Pablo Galindo Salgado
he parser that is something like `(Newline+ | NL+ ) {NOP}` but wanted to sanity check if that is right before I figure out how to hack in a NEWLINE rule and update my grammar ruleset. > ___________ > Python-Dev mailing list -- python-dev@python.org > To

[Python-Dev] Re: Possible bug in `re` module in Python 3.11?

2022-10-26 Thread Piotr Waszkiewicz
, e.g. the online tool > https://regex101.com/ > > > > Could somebody help me decide whether this is indeed a bug? > > Yes, it is a bug, and I have found its cause. Please open an issue on > the CPython bug tracker. > > > > _

[Python-Dev] Re: NEWLINE sentinel behavior in CPython's PEG grammar

2022-10-26 Thread Guido van Rossum
source >>> project and I've already noticed some problems (ex Newline vs NL) with how >>> they transcribed things. >>> > >>> > I am suspecting that CPython's grammar NEWLINE is a builtin rule for >>> the parser that is something like `(Newline+ | NL+ ) {NOP}` but wanted to >>

[Python-Dev] Re: NEWLINE sentinel behavior in CPython's PEG grammar

2022-10-26 Thread David J W
parser that is something like `(Newline+ | NL+ ) {NOP}` but wanted to > sanity check if that is right before I figure out how to hack in a NEWLINE > rule and update my grammar ruleset. > > _______ > > Python-Dev mailing list -- python-

[Python-Dev] Thank you for your contributions to Python 3.11!

2022-10-26 Thread Pablo Galindo Salgado
___ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le...@python.org https://mail.python.org/mailman3/lists/python-dev.python.org/ Message archived at https://mail.python.org/archives/list/python-dev@python.org/message

[Python-Dev] Re: NEWLINE sentinel behavior in CPython's PEG grammar

2022-10-26 Thread Pablo Galindo Salgado
; I copied and modified a PEG grammar ruleset from another open source >> project and I've already noticed some problems (ex Newline vs NL) with how >> they transcribed things. >> > >> > I am suspecting that CPython's grammar NEWLINE is a builtin rule for >> the parser th

[Python-Dev] Re: NEWLINE sentinel behavior in CPython's PEG grammar

2022-10-26 Thread Pablo Galindo Salgado
to sanity > check if that is right before I figure out how to hack in a NEWLINE rule and > update my grammar ruleset. > _______________ > Python-Dev mailing list -- python-dev@python.org > To unsubscribe send an email to python-dev-le...@python.

[Python-Dev] NEWLINE sentinel behavior in CPython's PEG grammar

2022-10-26 Thread David J W
grammar NEWLINE is a builtin rule for the parser that is something like `(Newline+ | NL+ ) {NOP}` but wanted to sanity check if that is right before I figure out how to hack in a NEWLINE rule and update my grammar ruleset. ___ Python-Dev mailing list -- python

[Python-Dev] Re: Possible bug in `re` module in Python 3.11?

2022-10-26 Thread Serhiy Storchaka
is a bug, and I have found its cause. Please open an issue on the CPython bug tracker. ___________ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le...@python.org https://mail.python.org/mailman3/lists

[Python-Dev] Re: Possible bug in `re` module in Python 3.11?

2022-10-26 Thread MRAB
t's definitely a bug. If it was complaining about the pattern then it might or might not be a bug, you'd need to check more closely, but "invalid SRE code" is definitely a bug. ___________ Python-Dev mailing list -- python-dev@python.org To un

[Python-Dev] Possible bug in `re` module in Python 3.11?

2022-10-26 Thread Piotr Waszkiewicz
ng from 3.6 (the oldest I've checked). What's more the regex i correctly recognized and does not cause any issues in other regexp implementations, e.g. the online tool https://regex101.com/ Could somebody help me decide whether this is indeed a bug? Best regards, Piotr Waszkiewicz _____

[Python-Dev] Re: problem with Distributed File System Replication and Namespacing and different versions of Python 3

2022-10-26 Thread Steve Holden
the mailing lists/forums are. > > Best Regards, > JC > ___________ > Python-Dev mailing list -- python-dev@python.org > To unsubscribe send an email to python-dev-le...@python.org > https://mail.python.org/mailman3/lists/python-dev.python.org/ &g

[Python-Dev] Re: problem with Distributed File System Replication and Namespacing and different versions of Python 3

2022-10-25 Thread Juan Cristóbal Quesada
___ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le...@python.org https://mail.python.org/mailman3/lists/python-dev.python.org/ Message archived at https://mail.python.org/archives/list/python-dev@python.org

[Python-Dev] Python 3.12.0 alpha 1 released.

2022-10-24 Thread Thomas Wouters
ware Foundation. Regards from dusky California, Your release team, Thomas Wouters @Yhg1s Ned Deily @nad Steve Dower @steve.dower -- Thomas Wouters ___________ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le...@pyth

[Python-Dev] [RELEASE] Python 3.11 final (3.11.0) is available

2022-10-24 Thread Pablo Galindo Salgado
ndo Salgado @pablogsal https://discuss.python.org/u/pablogsal ___ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le...@python.org https://mail.python.org/mailman3/lists/python-dev.python.org/ Message archi

[Python-Dev] Re: problem with Distributed File System Replication and Namespacing and different versions of Python 3

2022-10-24 Thread Steve Dower
ble to use PYTHONPYCACHEPREFIX to reference a local directory and avoid issues that way. Cheers, Steve _______ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le...@python.org https://mail.python.org/mailman3/li

[Python-Dev] IMPORTANT: Check the 3.11.0 cherry-picks

2022-10-24 Thread Pablo Galindo Salgado
do Salgado _______ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le...@python.org https://mail.python.org/mailman3/lists/python-dev.python.org/ Message archived at https://mail.python.org/archives/list/python-dev@python.o

[Python-Dev] Re: problem with Distributed File System Replication and Namespacing and different versions of Python 3

2022-10-22 Thread Juan Cristóbal Quesada
Thanks, yes, that was my last resort: inspecting the code through debugging the import system. Was hoping to get some light before that ;). ___ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le...@python.org

[Python-Dev] RELEASE MANAGEMENT: Python 3.11 release stream

2022-10-22 Thread Pablo Galindo Salgado
___ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le...@python.org https://mail.python.org/mailman3/lists/python-dev.python.org/ Message archived at https://mail.python.org/archives/list/python-dev@python.org

[Python-Dev] Re: problem with Distributed File System Replication and Namespacing and different versions of Python 3

2022-10-21 Thread Brett Cannon
ing on what OS you are running on). -Brett > _______________ > Python-Dev mailing list -- python-dev@python.org > To unsubscribe send an email to python-dev-le...@python.org > https://mail.python.org/mailman3/lists/python-dev.python.org/ > Message archived at >

[Python-Dev] Re: problem with Distributed File System Replication and Namespacing and different versions of Python 3

2022-10-21 Thread Juan Cristóbal Quesada
I guess my simplified question would be: ¿how does Python 3 versions manage Distributed File Systems and in particular Windows' DFS? Is it supported by the "import system" in Python? What differences are there? _______ Python-Dev mailing list

[Python-Dev] Re: problem with Distributed File System Replication and Namespacing and different versions of Python 3

2022-10-21 Thread Juan Cristóbal Quesada
a bit lost here. Thanks. ___ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le...@python.org https://mail.python.org/mailman3/lists/python-dev.python.org/ Message archived at https://mail.python.org/archives/list

[Python-Dev] Re: problem with Distributed File System Replication and Namespacing and different versions of Python 3

2022-10-21 Thread Brett Cannon
e > need to give solution to this. > One of the possibilities would be to distribute the libraries into C:/ > local disc, this eliminating the network path variable. But it would be > nice to know what is causing this in Python < 3.10.2. > > Thanks in advance. > ___

[Python-Dev] Re: problem with Distributed File System Replication and Namespacing and different versions of Python 3

2022-10-20 Thread Lou King
ath variable. But it would be > nice to know what is causing this in Python < 3.10.2. > > Thanks in advance. > ___________ > Python-Dev mailing list -- python-dev@python.org > To unsubscribe send an email to python-dev-le...@python.org > https://mail.python.or

[Python-Dev] problem with Distributed File System Replication and Namespacing and different versions of Python 3

2022-10-20 Thread rainonthescarecrowhumanwheels
sc, this eliminating the network path variable. But it would be nice to know what is causing this in Python < 3.10.2. Thanks in advance. _______ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le...@python.org

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

2022-10-19 Thread Guido van Rossum
People are free to continue to use python-dev, it just no longer has any official status, and many core devs and other key people have probably unsubscribed. I certainly have ignored this discussion here, even though (our of nostalgia, mostly) I am still subscribed. --Guido On Wed, Oct 19, 2022

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

2022-10-19 Thread Antoine Pitrou
/youtube.com/clip/UgkxyNe_dsZKinT_RT3UGb-BaP0SnvKteo2o > > Without RAII - introduced the most dangerous errors !! ___________ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le...@python.org https://mail.py

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

2022-10-17 Thread Greg Ewing
all kernel written in C, and write the rest using a tool similar to Cython that will take care of all the tricky reference counting for you. -- Greg _______ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le...@

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

2022-10-17 Thread Matthias Görgens
CPython is written (mostly) in C. There's Jython written in Java. There also IronPython written on C#. Feel free to write your own Python implementation in C++. Could be fun! ___ Python-Dev mailing list -- python-dev@python.org To unsubscribe send

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

2022-10-17 Thread Paul Moore
d expecting people to just do the work for you is almost certainly *not* going to work. Paul _______ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le...@python.org https://mail.python.org/mailman3/lists/python-dev.python.

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

2022-10-17 Thread Denis Kotov
; I already know, just as I don't think you've yet written anything I > didn't already know. It is just 10-20 seconds, I used YouTube Shorts to slice it :) ___________ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to pyt

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

2022-10-17 Thread Stephen J. Turnbull
ing I didn't already know. > Without RAII - introduced the most dangerous errors !! List the CVEs. I'll happily go read those! Steve _______ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le...@python.org https://ma

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

2022-10-17 Thread Denis Kotov
vKteo2o Without RAII - introduced the most dangerous errors !! ___________ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le...@python.org https://mail.python.org/mailman3/lists/python-dev.python.org/ Messa

[Python-Dev] [RELEASE] Python versions 3.10.8, 3.9.15, 3.8.15, 3.7.15 now available

2022-10-11 Thread Łukasz Langa
gt; signature.asc Description: Message signed with OpenPGP ___________ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le...@python.org https://mail.python.org/mailman3/lists/python-dev.python.org/ Message archived at https:/

[Python-Dev] Re: Embedded Python Memory Leaks

2022-10-08 Thread Victor Stinner
gt; Thanks in advance, > Alexei > ___________ > Python-Dev mailing list -- python-dev@python.org > To unsubscribe send an email to python-dev-le...@python.org > https://mail.python.org/mailman3/lists/python-dev.python.org/ > Message archived at > ht

[Python-Dev] Re: Embedded Python Memory Leaks

2022-10-06 Thread Gregory P. Smith
On Thu, Oct 6, 2022 at 12:48 PM wrote: > Hi Python team > > Is any plan to try and fix memory leaks when embedding Python in a C/C++ > application? > Please file issues on github with details if you find problems. -gps _______ Python-D

[Python-Dev] Embedded Python Memory Leaks

2022-10-06 Thread alexei73
Hi Python team Is any plan to try and fix memory leaks when embedding Python in a C/C++ application? Thanks in advance, Alexei ___ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le...@python.org https

[Python-Dev] PEP 699: Remove private dict version field added in PEP 509

2022-10-05 Thread Ken Jin
___ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le...@python.org https://mail.python.org/mailman3/lists/python-dev.python.org/ Message archived at https://mail.python.org/archives/list/python-dev@python.org/message

[Python-Dev] Re: Switching to Discourse

2022-09-27 Thread Barry Warsaw
have been a flat > nontopologically ordered grouping a few days ago. > > Cheers, > Cameron Simpson signature.asc Description: Message signed with OpenPGP ___ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to p

[Python-Dev] Re: Switching to Discourse

2022-09-27 Thread Cameron Simpson
would have been a flat nontopologically ordered grouping a few days ago. Cheers, Cameron Simpson ___________ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le...@python.org https://mail.python.org/mailman3/lists/python-d

[Python-Dev] Re: Switching to Discourse

2022-09-27 Thread Barry Warsaw
ething that previous discussions get for free or only new replies? I’m not finding much information about this feature on the Discourse site. -Barry signature.asc Description: Message signed with OpenPGP ___ Python-Dev mailing list -- python-dev@pyth

[Python-Dev] Re: Switching to Discourse

2022-09-26 Thread Cameron Simpson
should now be working correctly. This is the good work of Martin Brennan: https://meta.discourse.org/u/martin Cheers, Cameron Simpson ___ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le...@python.org

[Python-Dev] Re: Moving to Discourse

2022-09-23 Thread Baptiste Carvello
Hello, I'm afraid you misundertood my message. I'm not discussing the choice of Discourse as a communication medium (which would be futile after the decision has been made), just the thematic perimeter that would make up an equivalent of Python-dev (for those hundreds of us who happened to like

[Python-Dev] Re: Moving to Discourse

2022-09-22 Thread Brett Cannon
; > I believe indeed that the devguide should provide complete guidance > towards getting a python-dev equivalent using mailing-list mode, to > avoid many users having to reinvent the wheel. I don't have enough > experience to give such advice myself (yet). > > > But I don't thi

[Python-Dev] Re: Moving to Discourse

2022-09-22 Thread Baptiste Carvello
could standardize? > Open a PR on the devguide. You shouldn't need an official hat-wearer > around, unless there's a disagreement. I believe indeed that the devguide should provide complete guidance towards getting a python-dev equivalent using mailing-list mode, to avoid many users having to rei

[Python-Dev] Re: PEP 505 (None-aware operators) for Python 3.11

2022-09-21 Thread Philipp Burch
't want to say that this concept must be followed everywhere or that "X|None" is necessarily a bad thing. After all, I'd still love to see Python supporting such None-aware operators. Best regards, Philipp _______________ Python-Dev mailing list --

[Python-Dev] Re: PEP 505 (None-aware operators) for Python 3.11

2022-09-21 Thread Steven D'Aprano
p replacing `obj is None` with `obj == NULL` or `obj.isnull()` then you haven't really gained much. -- Steven _______ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le...@python.org https://mail.python.org/mailman3/lists

[Python-Dev] Re: Moving to Discourse

2022-09-21 Thread Petr Viktorin
ptiste [1] hopefully "we don't see anything that would block Python development" doesn't mean alternatives to the (slow and annoying) web interface are abandoned. [2] https://mail.python.org/archives/list/python-dev@python.org/message/UZJ27G57F7QJJ2LYBDGZQ5BIXLH7OXWJ/ Viktorin a é

[Python-Dev] Re: Moving to Discourse

2022-09-21 Thread Baptiste Carvello
t" doesn't mean alternatives to the (slow and annoying) web interface are abandoned. [2] https://mail.python.org/archives/list/python-dev@python.org/message/UZJ27G57F7QJJ2LYBDGZQ5BIXLH7OXWJ/ Viktorin a écrit : > As mentioned previously [0], the Steering Council decided to switch from &g

[Python-Dev] Re: PEP 505 (None-aware operators) for Python 3.11

2022-09-20 Thread Piotr Waszkiewicz
boptimal "| None" > pattern, it is probably good to tell folks right there why they should > consider better alternatives. > > As mentioned, I absolutely see Steve's point. However, there are many > Python scripts/programs working without a complex API, where this

[Python-Dev] Re: Moving to Discourse

2022-09-20 Thread Barry Warsaw
On Sep 20, 2022, at 02:47, Petr Viktorin wrote: > > Note that you can have development-related discussions anywhere, as long as > you (eventually) include all relevant people. You're welcome to continue > using python-dev and other mailing lists, IRC, in-person sprints, etc. Bu

[Python-Dev] Moving to Discourse

2022-09-20 Thread Petr Viktorin
As mentioned previously [0], the Steering Council decided to switch from python-dev to Discourse (discuss.python.org). We're aware that Discourse is not perfect. The previous mail thread [0] lists various shortcomings, as well as some workarounds. However, we don't see anything that would block

[Python-Dev] Re: PEP 505 (None-aware operators) for Python 3.11

2022-09-20 Thread Petr Viktorin
r alternatives.     As mentioned, I absolutely see Steve's point. However, there are many     Python scripts/programs working without a complex API, where this "|     None" pattern may still have its legitimate uses and the none-aware     operators can make code easier to read (and writ

[Python-Dev] Re: PEP 505 (None-aware operators) for Python 3.11

2022-09-20 Thread Petr Viktorin
may still have its legitimate uses and the none-aware operators can make code easier to read (and write). Best regards, Philipp ___ Python-Dev mailing list -- python-dev@python.org <mailto:python-dev@python.org> To unsubscribe s

[Python-Dev] Re: PEP 505 (None-aware operators) for Python 3.11

2022-09-19 Thread Guido van Rossum
od to tell folks right there why they should > consider better alternatives. > > As mentioned, I absolutely see Steve's point. However, there are many > Python scripts/programs working without a complex API, where this "| > None" pattern may still have its legitimate uses and the non

[Python-Dev] Re: Annotating pure functions to improve inline caching/optimization

2022-09-19 Thread Philipp Burch
other hand, a language as dynamic as Python probably is just not designed for an optimizer, so either you do it by hand or use an extension module to speed critical parts up. Fair enough. Best regards, Philipp _______ Python-Dev mailing list -- python-dev@

[Python-Dev] Re: PEP 505 (None-aware operators) for Python 3.11

2022-09-19 Thread Philipp Burch
Python scripts/programs working without a complex API, where this "| None" pattern may still have its legitimate uses and the none-aware operators can make code easier to read (and write). Best regards, Philipp _______ Python-Dev mailing li

[Python-Dev] Re: Annotating pure functions to improve inline caching/optimization

2022-09-19 Thread Philipp Burch
I've hoped for too much when reading about caching. Maybe sometimes in the future, who knows... Regards, Philipp _______ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le...@python.org https://mail.python.org/mail

[Python-Dev] Re: Annotating pure functions to improve inline caching/optimization

2022-09-19 Thread Ken Jin
on.org/3/library/dis.html _______ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le...@python.org https://mail.python.org/mailman3/lists/python-dev.python.org/ Message archived at https://mail.python.org/archives

[Python-Dev] Re: PEP 505 (None-aware operators) for Python 3.11

2022-09-15 Thread Piotr Waszkiewicz
the problem with the operator used to represent it - although this topic has also been raised). Take a look at the response by Steve Dower: https://mail.python.org/archives/list/python-dev@python.org/message/BRTRKGY6RLTHZJQ2US4LO7DYLSGXQ5GM/ Best regards, Piotr On Thu, Sep 15, 2022 at 6:54 PM Maarten

[Python-Dev] Re: PEP 505 (None-aware operators) for Python 3.11

2022-09-15 Thread Maarten Nieber
= book.publisher.owner.phone if book.publisher else None then they behave exactly the same. If we would misspell "owner" then in both versions we'd get the same AttributeError under the same conditions. Best, Maarten _______ Python-Dev mailing list -- python-dev@

[Python-Dev] Re: PEP 505 (None-aware operators) for Python 3.11

2022-09-15 Thread Piotr Waszkiewicz
> think he didn't like it so much (or at least, his co-contributor didn't > like it), but I still wanted to propose it here as well, because I do think > it's a good solution to the complaints that the ? operator looks cryptic. > > Best regards, > Maarten > _______

[Python-Dev] Re: PEP 505 (None-aware operators) for Python 3.11

2022-09-15 Thread Maarten Nieber
s cryptic. Best regards, Maarten _______ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le...@python.org https://mail.python.org/mailman3/lists/python-dev.python.org/ Message archived at https://mail.python.org/arch

[Python-Dev] Re: Annotating pure functions to improve inline caching/optimization

2022-09-14 Thread Jeremiah Gabriel Pascual
terpretation as other instructions. ___________ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le...@python.org https://mail.python.org/mailman3/lists/python-dev.python.org/ Message archived at https://mail.python.org/archives/list/python-dev@python.org/messa

[Python-Dev] Re: Annotating pure functions to improve inline caching/optimization

2022-09-14 Thread Eric V. Smith via Python-Dev
for mypy: https://github.com/python/mypy/issues/4468 [2] pure-func module: https://pypi.org/project/pure-func/ _______ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le...@python.org https://mail.python.org/mailm

[Python-Dev] Annotating pure functions to improve inline caching/optimization

2022-09-14 Thread Philipp Burch
_____ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le...@python.org https://mail.python.org/mailman3/lists/python-dev.python.org/ Message archived at https://mail.python.org/archives/list/python-dev@python.org/message/XDYZRC6L7LBPE3T6RO6S5IVY3J6IMRSJ/

[Python-Dev] Re: glob's new include_hidden parameter

2022-09-12 Thread Mats Wichmann
n=True) includes all of the conventionally hidden directories and hidden files in the current directory. sounds like a good point to me. _______ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le...@python.org https://mail

[Python-Dev] Re: glob's new include_hidden parameter

2022-09-12 Thread Eryk Sun
entionally hidden directories and hidden files in the current directory. ___________ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le...@python.org https://mail.python.org/mailman3/lists/python-dev.python.or

[Python-Dev] Re: glob's new include_hidden parameter

2022-09-12 Thread Guido van Rossum
f *include_hidden* is true, "``**``" pattern will match hidden > directories. > > ,,, with no mention of the other patterns. > > Is that just an omission in the rst doc? > > ___ > Python-Dev mailing list -- python-dev@python.org

[Python-Dev] glob's new include_hidden parameter

2022-09-12 Thread Mats Wichmann
: If *include_hidden* is true, "``**``" pattern will match hidden directories. ,,, with no mention of the other patterns. Is that just an omission in the rst doc? _______ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to

[Python-Dev] [RELEASE] Python 3.11 release candidate 2 (3.11.0rc2) is available

2022-09-12 Thread Pablo Galindo Salgado
g/u/steve.dower Pablo Galindo Salgado @pablogsal https://discuss.python.org/u/pablogsal ___ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le...@python.org https://mail.python.org/mailman3/lists/python-dev.python.

[Python-Dev] [RELEASE] Python versions 3.10.7, 3.9.14, 3.8.14, 3.7.14 now available with security content

2022-09-07 Thread Łukasz Langa
d <https://discuss.python.org/u/nad> Steve Dower @steve.dower <https://discuss.python.org/u/steve.dower> Pablo Galindo Salgado @pablogsal <https://discuss.python.org/u/pablogsal> Łukasz Langa @ambv <https://discuss.python.org/u/ambv> signature.asc Description: Message signed

[Python-Dev] [RELEASE] Python 3.11.0 RC2 is blocked

2022-09-05 Thread Pablo Galindo Salgado
___ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le...@python.org https://mail.python.org/mailman3/lists/python-dev.python.org/ Message archived at https://mail.python.org/archives/list/python-dev@python.org/message

[Python-Dev] Re: New contribution to Python built-in libraries.

2022-08-28 Thread Damian Shaw
,index,new value to be replaced)* > > Thank You, > Kiruthik. > ___________ > Python-Dev mailing list -- python-dev@python.org > To unsubscribe send an email to python-dev-le...@python.org > https://mail.python.org/mailman3/lists/python-dev.pyth

[Python-Dev] New contribution to Python built-in libraries.

2022-08-28 Thread Kiruthik.M.R 11-B
(i) return(''.join(l)) def strangelt(s,j,m): l=[] for i in s: if(i==s[j]): i=m l.append(i) return(''.join(l)) ___ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le

[Python-Dev] Re: Switching to Discourse

2022-08-18 Thread Baptiste Carvello
developers and weight in so that: * still current threads are not so aggressively scrubbed from core-dev.rss; and/or * "category" tags are added to posts.rss; and/or * per-category posts.rss are finally implemented. Cheers, Baptiste ___________

[Python-Dev] Re: Adding new escapes to regex module

2022-08-18 Thread Serhiy Storchaka
. ___ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le...@python.org https://mail.python.org/mailman3/lists/python-dev.python.org/ Message archived at https://mail.python.org/archives/list/python-dev@python.org/message

[Python-Dev] Re: Adding new escapes to regex module

2022-08-18 Thread Antoine Pitrou
HorizSpace} and \p{VertSpace}, so I'm going > with that. +1 for special Unicode categories rather than retargetting existing escapes for something else. (also, matching horizontal/vertical whitespace sounds rather unusual) Regards Antoine. __

[Python-Dev] Re: Adding new escapes to regex module

2022-08-17 Thread MRAB
ing with that. ___ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le...@python.org https://mail.python.org/mailman3/lists/python-dev.python.org/ Message archived at https://mail.python.org/archives/list/python-dev@python.org/mess

[Python-Dev] Re: Adding new escapes to regex module

2022-08-17 Thread MRAB
} and \p{vt} for horizontal and vertical whitespaces. It's not just Java. Perl supports all 4 of \h, \H, \v and \V. That might be why Java 8 changed. ___ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le

[Python-Dev] Re: Adding new escapes to regex module

2022-08-17 Thread Serhiy Storchaka
and vertical whitespaces. ___ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le...@python.org https://mail.python.org/mailman3/lists/python-dev.python.org/ Message archived at https://mail.python.org/archives/list

[Python-Dev] Re: Adding new escapes to regex module

2022-08-16 Thread MRAB
s I can tell, only ProgressSQL uses them, and, even then, it's for what everyone else writes as `\b` and `\B`. > > I want the regex module to remain compatible with the re module, in case they get added there sometime in the future. > > Opinions? ___________

[Python-Dev] Re: Adding new escapes to regex module

2022-08-16 Thread Barry Scott
ar as I can tell, only ProgressSQL uses them, and, even then, it's for > what everyone else writes as `\b` and `\B`. > > I want the regex module to remain compatible with the re module, in case they > get added there sometime in the future. > > Opinions? > _

[Python-Dev] Adding new escapes to regex module

2022-08-16 Thread MRAB
for what everyone else writes as `\b` and `\B`. I want the regex module to remain compatible with the re module, in case they get added there sometime in the future. Opinions? ___ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email

[Python-Dev] Re: [python-committers] [RELEASE] Python 3.11 release candidate 1 (3.11.0rc1) is available

2022-08-08 Thread Terry Reedy
are OK? ___ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le...@python.org https://mail.python.org/mailman3/lists/python-dev.python.org/ Message archived at https://mail.python.org/archives/list/python-dev@python.org/m

[Python-Dev] [RELEASE] Python 3.11 release candidate 1 (3.11.0rc1) is available

2022-08-08 Thread Pablo Galindo Salgado
sal ___ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le...@python.org https://mail.python.org/mailman3/lists/python-dev.python.org/ Message archived at https://mail.python.org/archives/list/python-dev@python.org/message/JV3LYX3SBGMLMIK7HLNZTLFPY4RMP

<    1   2   3   4   5   6   7   8   9   10   >