[issue28317] Improve support of FORMAT_VALUE in dis

2017-03-31 Thread Donald Stufft

Changes by Donald Stufft :


--
pull_requests: +1000

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue28317] Improve support of FORMAT_VALUE in dis

2016-10-08 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue28317] Improve support of FORMAT_VALUE in dis

2016-10-08 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 5e81d14a52f7 by Serhiy Storchaka in branch '3.6':
Issue #28317: The disassembler now decodes FORMAT_VALUE argument.
https://hg.python.org/cpython/rev/5e81d14a52f7

New changeset 085944763f3a by Serhiy Storchaka in branch 'default':
Issue #28317: The disassembler now decodes FORMAT_VALUE argument.
https://hg.python.org/cpython/rev/085944763f3a

--
nosy: +python-dev

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue28317] Improve support of FORMAT_VALUE in dis

2016-10-07 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


--
assignee:  -> serhiy.storchaka

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue28317] Improve support of FORMAT_VALUE in dis

2016-09-30 Thread Serhiy Storchaka

New submission from Serhiy Storchaka:

FORMAT_VALUE packs the information about conversion flags and boolean flag that 
denotes whether format specifier is passed on the stack in one integer 
argument. It is not easy to decode this information in disassemble output. 
Proposed patch makes disassembler producing human readable representation of 
FORMAT_VALUE argument.

$ echo 'f"{a} {b:4} {c!r} {d!r:4}"' | ./python -m dis
  1   0 LOAD_NAME0 (a)
  2 FORMAT_VALUE 0
  4 LOAD_CONST   0 (' ')
  6 LOAD_NAME1 (b)
  8 LOAD_CONST   1 ('4')
 10 FORMAT_VALUE 4 (with format)
 12 LOAD_CONST   0 (' ')
 14 LOAD_NAME2 (c)
 16 FORMAT_VALUE 2 (repr)
 18 LOAD_CONST   0 (' ')
 20 LOAD_NAME3 (d)
 22 LOAD_CONST   1 ('4')
 24 FORMAT_VALUE 6 (repr, with format)
 26 BUILD_STRING 7
 28 POP_TOP
 30 LOAD_CONST   2 (None)
 32 RETURN_VALUE

--
components: Library (Lib)
files: dis_format_string.patch
keywords: patch
messages: 277754
nosy: eric.smith, serhiy.storchaka
priority: normal
severity: normal
stage: patch review
status: open
title: Improve support of FORMAT_VALUE in dis
type: enhancement
versions: Python 3.6, Python 3.7
Added file: http://bugs.python.org/file44892/dis_format_string.patch

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com