>
> what if we had special support for python -c (and maybe in some other
> places like exec(), but definitely not for source files) for the purpose of
> one-liners? Then the syntax wouldn't need to be suitable for general
> purpose use, and you could do something like "have ~{ ~} ~; as alternate
On Tue, Jan 19, 2021 at 8:58 AM Random832 wrote:
>
> On Tue, Jan 5, 2021, at 17:17, lasizoillo wrote:
> > Sorry, but if I'm understanting the point is to make one-liners. For
> > example, if I want to do something like:
> >
> > $ env | grep "^XDG"
> >
> > In one python one liner like
> >
> > $
On Tue, Jan 5, 2021, at 17:17, lasizoillo wrote:
> Sorry, but if I'm understanting the point is to make one-liners. For
> example, if I want to do something like:
>
> $ env | grep "^XDG"
>
> In one python one liner like
>
> $ python -c 'import os;print("\n".join([f"{key}:{value}" for key,
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
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,
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
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
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
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.
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
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
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...
:)
> Multi-statment anonymous functions are, in my opinion, overrated, and a
> (slight) code smell. If your lambda is so complex it requires
On Wed, Jan 06, 2021 at 10:38:30AM +0300, Paul Sokolovsky wrote:
> Hello,
>
> On Tue, 5 Jan 2021 14:29:03 +0100
> Ronald Oussoren 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
>
Hello,
On Wed, 6 Jan 2021 11:47:08 +1100
Steven D'Aprano wrote:
[]
> You know Paul, as an advocate for braces, you're doing a great job of
> convincing me that they aren't necessary.
I'm an advocate for braces in as much as I'm an advocate for 2+2=4.
Braces exist, and used by people who need
Hello,
On Tue, 5 Jan 2021 14:29:03 +0100
Ronald Oussoren 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 questionable. The primary
On Tue, Jan 05, 2021 at 02:35:05AM +0300, Paul Sokolovsky wrote:
> But links were already posted:
> https://github.com/search?o=desc=python+braces=updated=Repositories .
> That's even sorted by last updated. Not every project in that list is
> about "python braces", but there're enough.
That's a
On Wed, Jan 6, 2021 at 9:17 AM lasizoillo wrote:
>
> Sorry, but if I'm understanting the point is to make one-liners. For example,
> if I want to do something like:
>
> $ env | grep "^XDG"
>
> In one python one liner like
>
> $ python -c 'import os;print("\n".join([f"{key}:{value}" for key,
Hi!
El mar, 5 ene 2021 a las 0:35, Paul Sokolovsky ()
escribió:
> Hello,
>
> On Tue, 5 Jan 2021 08:52:54 +1100
> Steven D'Aprano wrote:
>
>
> >> We love Python. We love them bash one-liners. We want to do
> >> one-liners in Python.
>
>
> The most vivid real-world example of that I know is Frida
On Tue, Jan 5, 2021 at 10:04 AM Chris Angelico wrote:
> So my question to you is: Why raise all these threads on python-ideas
> that have approximately zero chance of being accepted into the core
> language?
"Approximately zero" overstates the likelihood. "Strictly equal to zero"
is a more
On Wed, Jan 6, 2021 at 12:01 AM Paul Sokolovsky wrote:
> Anyway, this went offtopic wrt to the original subject.
> [chomp loads of drivel]
Yep, nothing more in this thread. Time to let it die a quiet death.
ChrisA
___
Python-ideas mailing list --
> On 5 Jan 2021, at 11:38, Paul Sokolovsky wrote:
>
> Hello,
>
> On Tue, 5 Jan 2021 21:03:06 +1100
> Chris Angelico mailto:ros...@gmail.com>> wrote:
>
>> On Tue, Jan 5, 2021 at 8:32 PM Paul Sokolovsky
>> wrote:
>>> And you seem to have 2nd level miss about this miss. I'm not the 1st
>>>
Hello,
On Tue, 5 Jan 2021 23:22:03 +1100
Chris Angelico wrote:
> On Tue, Jan 5, 2021 at 9:38 PM Paul Sokolovsky
> wrote:
> > There were good reasons to not have string interpolation in the core
> > language for decades then - KABOOM - there's string interpolation.
> > You see a pattern yet?
On Tue, Jan 5, 2021 at 9:38 PM Paul Sokolovsky wrote:
> There were good reasons to not have string interpolation in the core
> language for decades then - KABOOM - there's string interpolation. You
> see a pattern yet? No? Oh, let's just keep watching.
Do you have evidence from the language
Hello,
On Tue, 5 Jan 2021 21:03:06 +1100
Chris Angelico wrote:
> On Tue, Jan 5, 2021 at 8:32 PM Paul Sokolovsky
> wrote:
> > And you seem to have 2nd level miss about this miss. I'm not the 1st
> > asking about braces in Python, hundreds of people embraced braces
> > (sorry for the pun) in
On Tue, Jan 5, 2021 at 8:32 PM Paul Sokolovsky wrote:
> And you seem to have 2nd level miss about this miss. I'm not the 1st
> asking about braces in Python, hundreds of people embraced braces
> (sorry for the pun) in Python for decades (references are in other
> messages of this thread).
Hello,
On Tue, 5 Jan 2021 10:07:45 +0100
Ronald Oussoren wrote:
> > On 4 Jan 2021, at 12:29, Paul Sokolovsky wrote:
> >
> > Hello,
> >
> > On Mon, 4 Jan 2021 21:47:26 +1100
> > Chris Angelico mailto:ros...@gmail.com>> wrote:
> >
> >> On Mon, Jan 4, 2021 at 9:41 PM Paul Sokolovsky
> >>
> On 4 Jan 2021, at 12:29, Paul Sokolovsky wrote:
>
> Hello,
>
> On Mon, 4 Jan 2021 21:47:26 +1100
> Chris Angelico mailto:ros...@gmail.com>> wrote:
>
>> On Mon, Jan 4, 2021 at 9:41 PM Paul Sokolovsky
>> wrote:
>>>
>>> Hello,
>>>
>>> There're tons of projects which introduce alternative
Hello,
On Tue, 5 Jan 2021 08:52:54 +1100
Steven D'Aprano wrote:
> On Mon, Jan 04, 2021 at 01:38:23PM +0300, Paul Sokolovsky wrote:
> > Hello,
> >
> > There're tons of projects which introduce alternative braces
> > (i.e. C-like) syntax for Python.
>
> Got any examples of these projects?
On Tue, Jan 5, 2021 at 9:05 AM Steven D'Aprano wrote:
>
> On Mon, Jan 04, 2021 at 01:38:23PM +0300, Paul Sokolovsky wrote:
> > Hello,
> >
> > There're tons of projects which introduce alternative braces
> > (i.e. C-like) syntax for Python.
>
> Got any examples of these projects? Preferably ones
On Mon, Jan 04, 2021 at 01:38:23PM +0300, Paul Sokolovsky wrote:
> Hello,
>
> There're tons of projects which introduce alternative braces
> (i.e. C-like) syntax for Python.
Got any examples of these projects? Preferably ones that are actively
maintained, have had more than one contributor, and
Hello,
On Mon, 4 Jan 2021 14:09:30 +0200
Alex Hall wrote:
> On Mon, Jan 4, 2021 at 1:30 PM Paul Sokolovsky
> wrote:
>
> >
> > Which leads us back to the question - did anyone of those who did
> > that over decades ever bothered to post some kind of "spec" for this
> > alternative syntax?
> >
On Mon, Jan 4, 2021 at 1:30 PM Paul Sokolovsky wrote:
>
> Which leads us back to the question - did anyone of those who did that
> over decades ever bothered to post some kind of "spec" for this
> alternative syntax?
>
Is there a lot that needs to be specified? I imagine that the braces would
Hello,
On Mon, 4 Jan 2021 21:47:26 +1100
Chris Angelico wrote:
> On Mon, Jan 4, 2021 at 9:41 PM Paul Sokolovsky
> wrote:
> >
> > Hello,
> >
> > There're tons of projects which introduce alternative braces
> > (i.e. C-like) syntax for Python. Most of them are however not
> > properly
On Mon, Jan 4, 2021 at 9:41 PM Paul Sokolovsky wrote:
>
> Hello,
>
> There're tons of projects which introduce alternative braces
> (i.e. C-like) syntax for Python. Most of them are however not properly
> documented, and definitely not spec'ed for what they do.
>
> I wonder, does anyone here
34 matches
Mail list logo