发布

  • 17661 1813a6008f

    Improves Null Key Handling in Python (#9368)

    frostbyte_neo 发布于 2026-04-10 18:17:03 +00:00 | 140 次提交 在此版本后已推送到 master

    • Improves Null Key Handling in Python

    We aim to mimic the following behavior:

    >>> d = {1:2}
    >>> None in d
    False
    >>> d.get(None) is None
    True
    >>> d.pop(None)
    Traceback (most recent call last):
      File "<stdin>", line 1, in <module>
    KeyError: None
    >>> d.pop(None, None) is None
    True
    
    • Reverts dispose change
    下载附件