[Python-ideas] Re: Python with braces formal proposal?

2021-01-07 Thread Stephen J. Turnbull
Chris Angelico writes: > On Wed, Jan 6, 2021 at 9:27 PM Steven D'Aprano wrote: > > I'm glad that things like Perl one-liners, obfuscated C, and > > sewerage treatment works exist... > > :) +1 > > Multi-statment anonymous functions are, in my opinion, overrated, and a > > (slight) code s

[Python-ideas] Re: Python with braces formal proposal?

2021-01-07 Thread Brendan Barnwell
On 2021-01-07 04:08, Paul Sokolovsky wrote: >Can you discuss them on pycopy-ideas then? No, we first would need to discuss that idea on python-ideas-ideas list. This is just my perspective but. . . No, we don't. None of your recent ideas are actual proposals for changes to Python,

[Python-ideas] Re: pathlib enhancements

2021-01-07 Thread Sven R. Kunze
On 31.12.20 15:32, Todd wrote: 5. Stem with no suffixes The stem property only takes off the last suffix, but even in the example given ('my/library.tar.gz') it isn't really useful because the suffix has two parts ('.tar' and '.gz').  I suggest another property, probably c

[Python-ideas] Re: pathlib enhancements

2021-01-07 Thread Todd
On Thu, Jan 7, 2021, 10:54 Sven R. Kunze wrote: > I split my answers up to address different issues in different threads. > > > On 31.12.20 15:32, Todd wrote: > > Hi Sven, > > Thanks for your support and feedback. > > > On Thu, Dec 31, 2020, 07:23 Sven R. Kunze wrote: > >> Hi Todd, >> >> my comm

[Python-ideas] Re: pathlib enhancements

2021-01-07 Thread Sven R. Kunze
Last but not least, I tend more towards the "rmtree" method just to make it crystal clear to everyone. Maybe docs could cross-refer both methods. Tree manipulations are inherently complicated and a lot can go wrong. Symmetry is not 100% given as you might delete more than wh

[Python-ideas] Re: pathlib enhancements

2021-01-07 Thread Sven R. Kunze
I split my answers up to address different issues in different threads. On 31.12.20 15:32, Todd wrote: Hi Sven, Thanks for your support and feedback. On Thu, Dec 31, 2020, 07:23 Sven R. Kunze > wrote: Hi Todd, my comments below. Also would offer my time for

[Python-ideas] Re: Python with braces formal proposal?

2021-01-07 Thread Paul Sokolovsky
Hello, On Thu, 7 Jan 2021 12:32:11 + Paul Moore wrote: > On Thu, 7 Jan 2021 at 12:18, Paul Sokolovsky > wrote: > > On Thu, 7 Jan 2021 22:59:41 +1100 > > Chris Angelico wrote: > > > > > On Thu, Jan 7, 2021 at 9:12 PM Paul Sokolovsky > > > wrote: > > > > Well, I don't write PEPs. I writ

[Python-ideas] Re: Python with braces formal proposal?

2021-01-07 Thread Paul Moore
On Thu, 7 Jan 2021 at 12:18, Paul Sokolovsky wrote: > On Thu, 7 Jan 2021 22:59:41 +1100 > Chris Angelico wrote: > > > On Thu, Jan 7, 2021 at 9:12 PM Paul Sokolovsky > > wrote: > > > Well, I don't write PEPs. I write "pseudoPEPs". Wrote 2 so far: "+=" > > > operator for io.BytesIO/StringIO and "S

[Python-ideas] Re: Python with braces formal proposal?

2021-01-07 Thread Paul Sokolovsky
Hello, On Thu, 7 Jan 2021 22:59:41 +1100 Chris Angelico wrote: > On Thu, Jan 7, 2021 at 9:12 PM Paul Sokolovsky > wrote: > > In that regard, as of 3.9, CPython, has absolutely atrocious REPL > > support for its own syntax. It's just barely possible at all to type > > multi-line statement, but d

[Python-ideas] Re: Python with braces formal proposal?

2021-01-07 Thread Chris Angelico
On Thu, Jan 7, 2021 at 9:12 PM Paul Sokolovsky wrote: > In that regard, as of 3.9, CPython, has absolutely atrocious REPL > support for its own syntax. It's just barely possible at all to type > multi-line statement, but doing that as painful as hell, and after > typing, editing is not possible. >

[Python-ideas] Re: Python with braces formal proposal?

2021-01-07 Thread Paul Sokolovsky
Hello, On Wed, 6 Jan 2021 22:12:53 +1100 Chris Angelico wrote: [] > But Paul's recent track record of proposals isn't like that. They're > not part of the language. Everything was not part of the language, until it became. And "a language" is multi-level structure in the first place. For exam

[Python-ideas] Re: Python with braces formal proposal?

2021-01-07 Thread Paul Sokolovsky
Hello, On Wed, 6 Jan 2021 21:24:28 +1100 Steven D'Aprano wrote: [] > > > > In this regard, braces aren't worse than average other stuff > > > > posted here. Actually, it might be a bit more interesting, as > > > > it clearly moved people throughout the years. > > > > > > That’s questionabl