How safe is this? I like the idea. #!/usr/bin/python
UNSPECIFIED = object()
def fn(x, y=UNSPECIFIED):
if y is UNSPECIFIED:
print x, 'default'
else:
print x, y
fn(0, 1)
fn(0, None)
fn(0)
-- http://mail.python.org/mailman/listinfo/python-list
