Message309450
The rationale: without this information, it is impossible for anybody else to write a bytecode compiler / assembler, because when you create a code object you have to specify its stack depth. I used this information for my "maynard" bytecode assembler / disassembler.
That said, I'm not sure who needs these super-fancy versions Serhiy is proposing. To calculate stack depth, all you really need is the *maximum* stack depth per instruction. You might slightly over-allocate but it shouldn't really be much of a problem.
Serhiy: what's your use case for all these complicated new features? |
|
Date |
User |
Action |
Args |
2018-01-04 00:14:04 | larry | set | recipients:
+ larry, ncoghlan, benjamin.peterson, eric.snow, serhiy.storchaka |
2018-01-04 00:14:04 | larry | set | messageid: <1515024844.24.0.467229070634.issue32455@psf.upfronthosting.co.za> |
2018-01-04 00:14:04 | larry | link | issue32455 messages |
2018-01-04 00:14:04 | larry | create | |
|