From: Serhiy Storchaka Date: Sun, 8 May 2016 20:44:54 +0000 (+0300) Subject: Issue #26881: The modulefinder module now supports extended opcode arguments. X-Git-Tag: v3.6.0a1~52 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3e99fdeed5cff4eda913ea0082cdb94e59ce629d;p=python Issue #26881: The modulefinder module now supports extended opcode arguments. --- 3e99fdeed5cff4eda913ea0082cdb94e59ce629d diff --cc Lib/modulefinder.py index d8d645c77b,b8cce1f766..e220315253 --- a/Lib/modulefinder.py +++ b/Lib/modulefinder.py @@@ -10,16 -10,15 +10,15 @@@ import type 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 diff --cc Misc/NEWS index 63cdce2834,f9bb8efbe0..c58bac76f4 --- a/Misc/NEWS +++ b/Misc/NEWS @@@ -277,11 -127,8 +279,13 @@@ Librar - 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`.