Ideas for Python 4
rymg19 at gmail.com
rymg19 at gmail.com
Tue Apr 1 22:15:24 EDT 2014
On Tuesday, April 1, 2014 8:58:50 PM UTC-5, Chris Angelico wrote:
> On Wed, Apr 2, 2014 at 12:54 PM, Ryan Gonzalez <rymg19 at gmail.com> wrote:
>
> > I have a bunch of ideas I'd like to share for Python 4:
>
> >
>
> > Switch to <> for "not equal" instead of !=.
>
>
>
> PEP 0401 beat you to it five years ago.
>
That's what inspired this.
>
> > Add multiline lambdas:
>
> >
>
> > my_multiline_lambda = ll { return 7; }
>
>
>
> Yeah, you an' everyone else.
>
>
>
> > Add method chaining using even easier syntax:
>
> >
>
> > a = SomeObject()
>
> > b = a->>>m2->>>m3->>>m4!!;;
>
> >
>
> > -- Call m2, then m3, then m4, then return the resulting object
>
>
>
> Huh, did you see my recent proposal on that? I was quite serious.
>
I did. You were in my mind when I was writing this. ;)
>
> > -- BTW, April Fools! This is ugly...
>
>
>
> You're about a day late, sorry :)
>
In Florida, it's still April Fools.
>
> ChrisA
More information about the Python-list
mailing list