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/2008-January/076113.html below:

[Python-Dev] PySequence_Concat for dicts

[Python-Dev] PySequence_Concat for dicts [Python-Dev] PySequence_Concat for dictsRaymond Hettinger python at rcn.com
Sat Jan 12 01:45:20 CET 2008
[Jared]
> I think it would be convenient and pythonic if dict
> objects implemented the PySequence_Concat method. 

IMO, the chainmap() recipe on ASPN is a much better solution since it doesn't create a third dictionary with the all the attendant allocation and copying effort. It isn't a common use case to need to sum two dictionaries while keeping both of the inputs unaltered.

http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/305268.

Raymond
More information about the Python-Dev mailing list

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