A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2002-November/030442.html below:

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

[Python-Dev] Currently baking idea for dict.sequpdate(iterable, value=True) [Python-Dev] Currently baking idea for dict.sequpdate(iterable, value=True)Guido van Rossum guido@python.org
Mon, 25 Nov 2002 11:32:34 -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.

I think it should be None -- let's be explicit when we want True.

--Guido van Rossum (home page: http://www.python.org/~guido/)



RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4