• by zahlman on 10/14/2024, 4:35:34 PM

    > ''' if exists is False , will not overwrite current key if it's alreay there '''

    ...That's what `setdefault` does. It just also returns the value, which you're free to ignore. (The other version is what ordinary key assignment does.)

    Also, that's really not a clear name for the parameter at all.