Ron Adam <[EMAIL PROTECTED]> wrote:

> This *may* relate to None being an object which isn't the same as
> "not a value".  There currently isn't a way (that I know of) to
> specify a generally null object outside of sequences.
> 
>     def f(a, b, c=Null, d=x):     # Using None here wouldn't work.
> 
> 
> Recently I found a case where I wanted to return something that was
> more literally *nothing* than a None is.  So maybe a null symbol of
> some sort might be useful in other cases as well?

And what's wrong with:

class Null: pass
def f(a, b, c=Null, d=x):
    [...]

Giovanni Bajo

_______________________________________________
Python-3000 mailing list
Python-3000@python.org
http://mail.python.org/mailman/listinfo/python-3000
Unsubscribe: 
http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com

Reply via email to