Ideas for Python 4

Chris Angelico rosuav at gmail.com
Tue Apr 1 21:58:50 EDT 2014


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.

> 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.

> -- BTW, April Fools! This is ugly...

You're about a day late, sorry :)

ChrisA



More information about the Python-list mailing list