[issue45260] Implement superinstruction UNPACK_SEQUENCE_ST

2021-10-08 Thread zcpara
Change by zcpara : -- nosy: +Mark.Shannon ___ Python tracker <https://bugs.python.org/issue45260> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45260] Implement superinstruction UNPACK_SEQUENCE_ST

2021-09-22 Thread zcpara
Change by zcpara : -- keywords: +patch pull_requests: +26910 stage: -> patch review pull_request: https://github.com/python/cpython/pull/28519 ___ Python tracker <https://bugs.python.org/issu

[issue45260] Implement superinstruction UNPACK_SEQUENCE_ST

2021-09-21 Thread zcpara
New submission from zcpara : PEP 659 quickening provides a mechanism for replacing instructions. We add another super-instruction UNPACK_SEQUENCE_ST to replace the original UNPACK_SEQUENCE and the following n STROE_FAST instructions. See https://github.com/faster-cpython/ideas/issues/16

[issue44505] loop invariant code motion

2021-06-24 Thread zcpara
New submission from zcpara : It is a common scenario to call functions in loop, such as def foo(): for i in range(10): len("abc") Currently, we generate bytecode like this; 2 0 SETUP_LOOP 24 (to 26) 2 LOAD_GLOBAL 0 (range)

[issue44502] bla in cpython/Lib/test/test_sys_settrace.py

2021-06-24 Thread zcpara
New submission from zcpara : In cpython/Lib/test/test_sys_settrace.py, there is a function: 1 def no_pop_blocks(): 2y = 1 3while not y: 4bla 5x = 1 what does bla mean? bla is not defined anywhere. But the function can pass the compilation. bla is treated as a global name