A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-list/2001-April/080715.html below:

Conditional operator in Python?

Conditional operator in Python? Conditional operator in Python?Aahz Maruch aahz at panix.com
Sun Apr 1 10:45:44 EDT 2001
In article <3wFx6.2498$sk3.826353 at newsb.telia.net>,
Fredrik Lundh <fredrik at effbot.org> wrote:
>
>here's the eff-bot's favourite lambda refactoring rule:
>
>1) write a lambda function
>2) write a comment explaining what the heck that lambda does
>3) study the comment for a while, and think of a name that captures
>   the essence of the comment
>4) convert the lambda to a def statement, using that name
>5) remove the comment

Hey!  That's pretty good.  Keep it in a cut'n'paste buffer.
-- 
                      --- Aahz  <*>  (Copyright 2001 by aahz at pobox.com)

Androgynous poly kinky vanilla queer het Pythonista   http://www.rahul.net/aahz/
Hugs and backrubs -- I break Rule 6

"I put people on my humor list as a form of revenge, you realize."  --SJM

More information about the Python-list mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4