Author jimjjewett
Recipients
Date 2006-08-24.17:49:19
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
Logged In: YES 
user_id=764593

For question (5)

    def f(a): pass  
    sig=inspect.getsignature(f)
    myargs=()
    mykwargs=dict(a=1)
    sig.bind(myargs, mykwargs)

Parameter 'a' has been passed, but it is part of the 
keywords mapping, rather than part of the positional 
tuple.  Right now, this would 

    raise TypeError("too few positional arguments provided")

I believe the python parser will normalize calls so that a 
typical call f(a=6) would would end up seeing

    args=(6)
    kwargs={}

but I didn't see anything explaining that as a precondition.

History
Date User Action Args
2007-08-23 15:54:18adminlinkissue1544909 messages
2007-08-23 15:54:18admincreate