<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On 2 March 2017 at 09:36, M.-A. Lemburg <span dir="ltr"><<a href="mailto:mal@egenix.com" target="_blank">mal@egenix.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div>On 02.03.2017 09:03, Serhiy Storchaka wrote:<br>
> Function implemented in Python can have optional parameters with default<br>[...] <br></div></div></blockquote><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">
</div></div>Why a new syntax ? Can't we just have a pre-defined sentinel<br>
singleton NoDefault and use that throughout the code (and also<br>
special case it in argument parsing/handling)?<br></blockquote><div><br></div><div>I think for the sane reason that we didn't add Undefined to PEP 484 and PEP 526:<br></div><div>Having "another kind of None" will cause code everywhere to expect it. (Plus Guido didn't like it)<br><br>--<br></div><div>Ivan<br><br><br></div></div></div></div>