[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 an

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

2022-10-26 Thread Matthias Görgens
Hi David, Could you share what you have so far, perhaps ok GitHub or so? That way it's easier to diagnose your problems. I'm reasonably familiar with Rust. Perhaps also add a minimal crashing example? Cheers, Matthias. On Thu, 27 Oct 2022, 04:52 David J W, wrote: > Pablo, > Nl and

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

2022-11-28 Thread Matthias Görgens
For what it's worth, as a user of the language I would like sets to behave as much as possible as-if they were basically dicts that map all elements to `()`. That way I'd have to keep one less mental model in my head. I deliberately say 'as-if' because when I'm a user of the language, I don't

[Python-Dev] Re: Feature Suggestion: "repeat" statement in loops

2023-01-28 Thread Matthias Görgens
I don't think 'repeat' should make it into the language. But: it's an excellent test case to check how flexible the language already is. Joao did a great job demonstrating what's possible! On Thu, 26 Jan 2023, 21:15 Joao S. O. Bueno, wrote: > I don't think this will fly - if not for any other