[Python-3000] Keyword Only Argument

Jiwon Seo seojiwon at gmail.com
Sun Aug 20 23:52:32 CEST 2006


For the implementation of  Implement PEP [PEP]3102 - Keyword Only
Argument, it would be nice to have a (abstract) data structure
representing the signature of a function. Currently, the code object
only has # of arguments, # of default values, so if we want to allow
something like,

def foo(a,b=10,*,c,d):
    ...

or,

def foo(a,b=10,*,c,d=20):
    ...

and signature data structure will be very helpful.

Signature data structure is roughly described in
http://mail.python.org/pipermail/python-3000/2006-April/001249.html ,
but has anyone got detailed idea or implemented it (doesn't matter how
naive the implementation is) ? Brett, is that document most recent one
describing signature data structure?

-Jiwon


More information about the Python-3000 mailing list