What is a function parameter =[] for?

Steven D'Aprano steve at pearwood.info
Tue Nov 24 12:56:17 EST 2015


On Wed, 25 Nov 2015 01:58 am, Antoon Pardon wrote:

> Op 23-11-15 om 14:58 schreef Steven D'Aprano:

> > ... closures can also be used for [static storage] ...

> If you really want mutable static storage, you can simulate it more
> cleanly with a closure than using a default argument.

You don't say. Thanks for letting me know what I already pointed out in the
very post you responded to. It's always nice to see that people read my
words with care and attention to detail.



-- 
Steven




More information about the Python-list mailing list