Conversation
Notices
-
Embed this notice
Python's dict splice ({a}|{b}) does not recursively splice dicts:
>>> a={1:{1:1}}
>>> b={1:{2:2}}
>>> a
{1: {1: 1}}
>>> b
{1: {2: 2}}
>>> a|b
{1: {2: 2}}
-
Embed this notice
@Zergling_man Pretty much no python function works as you want it to.
-
Embed this notice
@Zergling_man I want the programming language to work properly and not be braindead.
The one way Python wants to do things is the wrong way.
-
Embed this notice
@Suiseiseki You're thinking of javascript. Python is generally braindead easy; it's for when I want to write something without thinking and have it still do what I wanted. Usually there is one,and preferably only one, obvious way to do things. This is the obvious behaviour; just not the most convenient.