This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author serhiy.storchaka
Recipients ncoghlan, serhiy.storchaka, yselivanov
Date 2018-02-28.16:31:31
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1519835491.83.0.467229070634.issue32970@psf.upfronthosting.co.za>
In-reply-to
Content
The proposed PR adds decryption of the MAKE_FUNCTION argument (it is a bits set) in the disassembler output. For example:

$ echo 'def f(x, y=1, *, z=2): ...' | ./python -m dis
  1           0 LOAD_CONST               6 ((1,))
              2 LOAD_CONST               1 (2)
              4 LOAD_CONST               2 (('z',))
              6 BUILD_CONST_KEY_MAP      1
              8 LOAD_CONST               3 (<code object f at 0x7fe5ade8f300, file "<stdin>", line 1>)
             10 LOAD_CONST               4 ('f')
             12 MAKE_FUNCTION            3 (defaults, kwdefaults)
             14 STORE_NAME               0 (f)
             16 LOAD_CONST               5 (None)
             18 RETURN_VALUE

Disassembly of <code object f at 0x7fe5ade8f300, file "<stdin>", line 1>:
  1           0 LOAD_CONST               0 (None)
              2 RETURN_VALUE
History
Date User Action Args
2018-02-28 16:31:31serhiy.storchakasetrecipients: + serhiy.storchaka, ncoghlan, yselivanov
2018-02-28 16:31:31serhiy.storchakasetmessageid: <1519835491.83.0.467229070634.issue32970@psf.upfronthosting.co.za>
2018-02-28 16:31:31serhiy.storchakalinkissue32970 messages
2018-02-28 16:31:31serhiy.storchakacreate