On Thu, May 28, 2020 at 3:50 AM Alex Hall <[email protected]> wrote:
> On Thu, May 28, 2020 at 12:38 PM Greg Ewing <[email protected]> > wrote: > >> >> But I'm having trouble thinking of one. I can't remember ever >> writing a function with a default argument value that *has* to >> be mutable and *has* to have a new one created on each call >> *unless* the caller provided one. >> > Actually, we need to one further: a default argument value that *has* to be mutable and *has* to have a new one created on each call *unless* the caller provided one ... and *has* to treat None as valid value. That I'm really having trouble with :-) -CHB -- Christopher Barker, PhD Python Language Consulting - Teaching - Scientific Software Development - Desktop GUI and Web Development - wxPython, numpy, scipy, Cython
_______________________________________________ Python-ideas mailing list -- [email protected] To unsubscribe send an email to [email protected] https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://mail.python.org/archives/list/[email protected]/message/VR4LRW6ZT5MV2654CICTYF25OFFWDTHO/ Code of Conduct: http://python.org/psf/codeofconduct/
