[Python-Dev] Currently baking idea for dict.sequpdate(iterable, value=True)

Just van Rossum just@letterror.com
Mon, 25 Nov 2002 18:56:39 +0100


Guido van Rossum wrote:

> > Do you prefer the default value to be None or True?
> > Earlier discussions on python-dev showed that
> > True is more meaningful to some in the context of
> > membership testing.  OTOH, dict.setvalue and 
> > dict.get both use None.
> 
> I think it should be None -- let's be explicit when we want True.

I agree. Also: whatever the value is, it can't be any more meaningful than any
other, as I don't think the value has _any_ meaning in this context ;-)

Just