[Python-Dev] Currently baking idea for dict.sequpdate(iterable, value=True)
Raymond Hettinger
python@rcn.com
Mon, 25 Nov 2002 11:16:10 -0500
> x = {}.sequpdate(...)
>
> which suggests that you're really looking for a different constructor
> as a class method.
Yes!
Will revise the patch accordingly
and use Just's suggested name, fromseq().
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.
Raymond Hettinger