[Python-Dev] Accepting PEP 3154 for 3.4? (original) (raw)

Antoine Pitrou solipsis at pitrou.net
Tue Nov 19 19:53:52 CET 2013


On Tue, 19 Nov 2013 19:51:10 +0100 Antoine Pitrou <solipsis at pitrou.net> wrote:

On Mon, 18 Nov 2013 16:48:05 -0800 Guido van Rossum <guido at python.org> wrote: > > Food for thought: maybe we should have variable-encoding lengths for all > opcodes, rather than the current cumbersome scheme?

Well, it's not that cumbersome... If you look at CPU encodings, they also tend to have different opcodes for different immediate lengths. In your case, I'd say it mostly leads to a bit of code duplication. But the opcode space is far from exhausted right now :)

Oops... Make that "in our case", of course.

cheers

Antoine.



More information about the Python-Dev mailing list