[Python-3000] optional argument annotations
Phillip J. Eby
pje at telecommunity.com
Thu Nov 23 20:21:23 CET 2006
At 10:00 AM 11/23/2006 -0800, Tony Lownds wrote:
>I have a working optional argument syntax implementation, I'm hoping
>to get some direction on
>the implementation decisions so far.... please see below.
Why not just have the generated bytecode construct the annotation
dictionary directly and assign it to the returned function's
func_annotations, and the same for func_return if needed? Then there'd be
no need to change the MAKE_FUNCTION opcode. Mightn't that make it easier
to e.g. backport to the 2.x line, since it'd only be a compiler change, not
an interpreter or function type change?
More information about the Python-3000
mailing list