On Sat, Nov 8, 2008 at 6:36 AM, Michael <span dir="ltr"><<a href="mailto:fuzzyman@gmail.com">fuzzyman@gmail.com</a>></span> wrote:<br><br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
This seems to be a solution in search of a problem. If you handle sentinel default values early in a function then they are rarely problematic.</blockquote><div><br>The general consensus so far seems to be that None and sentinel values
are good enough in practice and adding a new feature is
over-engineering, but I wouldn't go as far as calling it a solution in
search of problem. To me it looks similar to the motivation for
keyword-only arguments; as the PEP mentions, one can effectively have
keyword-only arguments with the idiom:<br><br>
def compare(a, b, *ignore, key=None):<br>
    if ignore:  # If ignore is not empty<br>
        raise TypeError<br>
<br>
Thankfully, this didn't prevent the PEP from being accepted.<br>
<br>
George <br><br></div></div>