default value in __init__

Steven D'Aprano steve at REMOVE-THIS-cybersource.com.au
Sat Oct 18 22:25:06 EDT 2008


On Sat, 18 Oct 2008 09:17:28 +1300, Lawrence D'Oliveiro wrote:

> In message
> <da493481-7183-423d-bf12-56c1ca8a7f04 at k30g2000hse.googlegroups.com>,
> Aaron "Castironpi" Brady wrote:
> 
>> The purpose of a parameter is something that the caller can supply, but
>> doesn't have to.  It is not for internal-use-only items.
> 
> Exactly!

Says who?

Using arguments for internal-use-only is a perfectly acceptable example 
of practicality beating purity.




-- 
Steven



More information about the Python-list mailing list