default value in __init__

Steven D'Aprano steve at
Sun Oct 19 13:51:28 CEST 2008

On Sun, 19 Oct 2008 00:56:17 -0700, Paul McGuire wrote:
> On Oct 14, 1:36 pm, "David C. Ullrich" <dullr... at> wrote:
>> In particular default parameters should work the way the user expects!
>> The fact that different users will expect different things here is no
>> excuse...
> Are you being sarcastic? 

Yes, David was being sarcastic. Or possibly ironic. Satirical? One of 
those humour things. Whatever it was, I think you're the second person 
who missed it. 

> Short of "import mindreading", I don't know
> how Python would know which behavior a given user would expect.


Besides, Guido has a time machine, and apparently antigravity is being 
added to the standard library, so I don't see why we can't have 
mindreading too.


More information about the Python-list mailing list