Éric Araujo <mer...@netwok.org> added the comment: Note that if we switch the order like you propose, we don’t need to use dict.get:
set D[k]=d if k not in D then return D[k] I suspect the current doc was written the way it is because it matches the actual implementation. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue33235> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com