[Python-Dev] Re: A question about pattern matching

2020-11-24 Thread Alan G. Isaac
On 11/24/2020 4:40 PM, Marco Sulla wrote: I have a question about pattern matching: is it used often in math language as Mathematica? Yes, pattern matching is absolutely fundamental to Mathematica. See the `MatchQ` function: https://reference.wolfram.com/language/ref/MatchQ.html This works bri

[Python-Dev] A question about pattern matching

2020-11-24 Thread Marco Sulla
Excuse me, I have a question about pattern matching: is it used often in math language as Mathematica? May it help to translate code from such languages to Python? ___ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python

[Python-Dev] Re: Advantages of pattern matching - a simple comparative analysis

2020-11-24 Thread Brian Coleman
David Mertz wrote: > On Mon, Nov 23, 2020 at 9:02 PM Brian Coleman brianfcole...@gmail.com > wrote: > > Basically, I > > agree matching/destructuring is a powerful idea. But I also > > wonder how much genuinely better it is than a library that does not > > require > > a language change. For examp

[Python-Dev] Re: Distro packagers: PEP 615 and the tzdata dependency

2020-11-24 Thread Brett Cannon
If enough people were interested we could create a "Distributors" category on discuss.python.org. On Tue, Nov 24, 2020 at 9:08 AM Tianon Gravi wrote: > > I'd love to have an easy way to keep them in the loop. > > I'm one of the maintainers on https://github.com/docker-library/python > (which is

[Python-Dev] Re: Distro packagers: PEP 615 and the tzdata dependency

2020-11-24 Thread Tianon Gravi
> I'd love to have an easy way to keep them in the loop. I'm one of the maintainers on https://github.com/docker-library/python (which is what results in https://hub.docker.com/_/python), and I'd love to have an easy way to keep myself in the loop too! O:) Is there a lower-frequency mailing list

[Python-Dev] Re: Remove formatter module

2020-11-24 Thread Fred Drake
On Tue, Nov 24, 2020 at 10:59 AM Stéfane Fermigier wrote: > I've run a quick search on GitHub and the only meaningful reference I could > find is the Grail browser (which had its last release, AFAICT, in 1999). > > http://grail.sourceforge.net/ Oh, the memories! Looking at docs, I can vaguely r

[Python-Dev] Re: Remove formatter module

2020-11-24 Thread Stéfane Fermigier
On Tue, Nov 24, 2020 at 12:51 PM Victor Stinner wrote: > > I never used this module, I don't know what it is. > I've run a quick search on GitHub and the only meaningful reference I could find is the Grail browser (which had its last release, AFAICT, in 1999). http://grail.sourceforge.net/ S

[Python-Dev] Re: Remove formatter module

2020-11-24 Thread Dong-hee Na
Thanks everybody I will merge this PR until tomorrow ;) 2020년 11월 24일 (화) 오후 10:08, Stéfane Fermigier 님이 작성: > > > On Tue, Nov 24, 2020 at 12:51 PM Victor Stinner > wrote: > >> >> I never used this module, I don't know what it is. >> > > I've run a quick search on GitHub and the only meaningful

[Python-Dev] Re: Ideas for improving the contribution experience

2020-11-24 Thread Victor Stinner
Hi Tal, Thanks for driving such research, it's really interesting. Sadly, I'm not surprised by the results, since I'm already aware of these issues. IMHO the most promising way to get more review is to create groups where developers work on the same topic and review each other. Also, mentoring i

[Python-Dev] Re: Remove formatter module

2020-11-24 Thread Senthil Kumaran
+1 vote on removal. No concerns. It's been deprecated for a long time now (since 3.4). On Tue, Nov 24, 2020 at 3:54 AM Victor Stinner wrote: > Since importing the module emits a DeprecationWarning at runtime since > Python 3.4 and the deprecation is properly documented, IMO it's fine > to remove

[Python-Dev] Re: Remove formatter module

2020-11-24 Thread Victor Stinner
Since importing the module emits a DeprecationWarning at runtime since Python 3.4 and the deprecation is properly documented, IMO it's fine to remove it right now: https://docs.python.org/dev/library/formatter.html I never used this module, I don't know what it is. "Formatter objects transform an

[Python-Dev] Re: Advantages of pattern matching - a simple comparative analysis

2020-11-24 Thread Mark Shannon
Hi Eric, On 23/11/2020 9:32 pm, Eric V. Smith wrote: On 11/23/2020 3:44 PM, David Mertz wrote: I have a little bit of skepticism about the pattern matching syntax, for similar reasons to those Larry expresses, and that Steve Dower mentioned on Discourse. Basically, I agree matching/destruct