import struct
import warnings
with warnings.catch_warnings():
- warnings.simplefilter('ignore', PendingDeprecationWarning)
+ warnings.simplefilter('ignore', DeprecationWarning)
import imp
- # XXX Clean up once str8's cstor matches bytes.
- LOAD_CONST = bytes([dis.opmap['LOAD_CONST']])
- IMPORT_NAME = bytes([dis.opmap['IMPORT_NAME']])
- STORE_NAME = bytes([dis.opmap['STORE_NAME']])
- STORE_GLOBAL = bytes([dis.opmap['STORE_GLOBAL']])
+ LOAD_CONST = dis.opmap['LOAD_CONST']
+ IMPORT_NAME = dis.opmap['IMPORT_NAME']
+ STORE_NAME = dis.opmap['STORE_NAME']
+ STORE_GLOBAL = dis.opmap['STORE_GLOBAL']
STORE_OPS = STORE_NAME, STORE_GLOBAL
- HAVE_ARGUMENT = bytes([dis.HAVE_ARGUMENT])
+ EXTENDED_ARG = dis.EXTENDED_ARG
# Modulefinder does a good job at simulating Python's, but it can not
# handle __path__ modifications packages make at runtime. Therefore there
- Issue #26873: xmlrpc now raises ResponseError on unsupported type tags
instead of silently return incorrect result.
+ - Issue #26881: modulefinder now works with bytecode with extended args.
+
+- Issue #26915: The __contains__ methods in the collections ABCs now check
+ for identity before checking equality. This better matches the behavior
+ of the concrete classes, allows sensible handling of NaNs, and makes it
+ easier to reason about container invariants.
+
- Issue #26711: Fixed the comparison of plistlib.Data with other types.
- Issue #24114: Fix an uninitialized variable in `ctypes.util`.