• Damien George's avatar
    py: Change compile order for default positional and keyword args. · 69b89d21
    Damien George authored
    This simplifies the compiler a little, since now it can do 1 pass over
    a function declaration, to determine default arguments.  I would have
    done this originally, but CPython 3.3 somehow had the default keyword
    args compiled before the default position args (even though they appear
    in the other order in the text of the script), and I thought it was
    important to have the same order of execution when evaluating default
    arguments.  CPython 3.4 has changed the order to the more obvious one,
    so we can also change.
    69b89d21
emitbc.c 30 KB