Created
August 3, 2012 19:27
-
-
Save didip/3250687 to your computer and use it in GitHub Desktop.
testing dict merge if keys are integers
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Python 2.6.1 (r261:67515, Jun 24 2010, 21:47:49) | |
[GCC 4.2.1 (Apple Inc. build 5646)] on darwin | |
Type "help", "copyright", "credits" or "license" for more information. | |
>>> a = {1:1} | |
>>> b = {2:2} | |
>>> dict(a, **b) | |
{1: 1, 2: 2} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment