<br>How safe is this?  I like the idea.<br><br>#!/usr/bin/python<br><br>UNSPECIFIED = object()<br><br>def fn(x, y=UNSPECIFIED):<br>   if y is UNSPECIFIED:<br>      print x, 'default'<br>   else:<br>      print x, y<br>
<br>fn(0, 1)<br>fn(0, None)<br>fn(0)<br><br><br>