Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #69530
| References | <CAO41-mMT4J6zkDc8jUpD_-+qTbn2tMyCzBCM2mW_74OXp1JsrA@mail.gmail.com> |
|---|---|
| Date | 2014-04-02 12:58 +1100 |
| Subject | Re: Ideas for Python 4 |
| From | Chris Angelico <rosuav@gmail.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.8811.1396403940.18130.python-list@python.org> (permalink) |
On Wed, Apr 2, 2014 at 12:54 PM, Ryan Gonzalez <rymg19@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
Back to comp.lang.python | Previous | Next — Next in thread | Find similar | Unroll thread
Re: Ideas for Python 4 Chris Angelico <rosuav@gmail.com> - 2014-04-02 12:58 +1100
Re: Ideas for Python 4 rymg19@gmail.com - 2014-04-01 19:15 -0700
Re: Ideas for Python 4 Chris Angelico <rosuav@gmail.com> - 2014-04-02 13:25 +1100
csiph-web