Late-binding of function defaults (was Re: What is a function parameter =[] for?)

Larry Hudson orgnut at yahoo.com
Thu Nov 26 01:44:41 EST 2015


On 11/25/2015 12:32 AM, Chris Angelico wrote:
> On Wed, Nov 25, 2015 at 7:14 PM, Antoon Pardon
> <antoon.pardon at rece.vub.ac.be> wrote:
>> [snip]
>
> "Oh come on. It's basic arithmetic. You should be able to add 7 and
> 7... the result's 14!"
>
> "But it's so confusing. Why can't it be 16? It'd be more convenient
> for me if it were 16."

No.  It's 42.    ;-)

      -=- Larry -=-

<The Hitchhiker's Guide to the Galaxy says that's what *The Answer* is.>




More information about the Python-list mailing list