da-dada <georg.klingenb...@travedsl.de> added the comment:
I have no problem of making my programme run properly (asking first if in dict etc), but I just read the docu of dict.setdefault setdefault(key[, default]) If key is in the dictionary, return its value. If not, insert key with a value of default and return default. default defaults to None. and it clearly reads if the key is.. return its value, with a full stop; so either the docu is wrong (but proposes exactly the needed shortcut) or python is as it is: come in & find out ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue38998> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com