News for hackers. Stuff that matters.
Re:Python: Common Newbie Mistakes, Part 1 by mnordhoff on Tuesday July 09, 2013 @03:21AM (#6011541)
I don't have experience with mock, but I've used object() -- literally -- as a sentinel.

    _sentinel = object()

    def print_now(now=_sentinel):
        if now is _sentinel:
            now = time.time()
        ...

There are no comments on this comment yet.