cost 61 ms
在 Python 字節碼中,如果 function 什么都不返回,為什么 CALL_FUNCTION 指令后面還有 POP_TOP 指令?

[英]In Python bytecode, why is there a POP_TOP instruction after the CALL_FUNCTION instruction if the function returns nothing?

我在研究Python字節碼,發現POP_TOP指令后面有CALL_FUNCTION指令。 POP_TOP在這里做什么? 運行python3 -m dis main.py后,我得到了 請參閱第 22行和第 42 行。 ...


排序:
質量:
 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM