[Python-ideas] Async API: some code to review

Greg Ewing greg.ewing at canterbury.ac.nz
Tue Oct 30 01:19:08 CET 2012


Guido van Rossum wrote:
>>I would to see add_{reader,writer} and call_{soon,later} accepting
>>**kwargs as well as *args. At least to respect functions with
>>keyword-only arguments.
> 
> Hmm... I intentionally ruled those out because I wanted to leave the
> door open for keyword args that modify the registration function

One way to accommodate that would be to make the
registration API look like this:

    call_later(my_func)(arg1, ..., kwd = value, ...)

-- 
Greg



More information about the Python-ideas mailing list