python-trio / trio-asyncio

a re-implementation of the asyncio mainloop on top of Trio
Other
188 stars 37 forks source link

run_asyncio() kwargs? #28

Closed belm0 closed 6 years ago

belm0 commented 6 years ago

would it be reasonable for run_asyncio() to propagate kwargs so that partial() isn't needed?

smurfix commented 6 years ago

Trio's standard scheme is that positional arguments are for the called procedure while keyword args are for the interloper.

I could certainly teach the run_* functions to be "special", but I'd like a bit more confidence that they will never require kwargs of their own. So, I might do that for 1.0 or thereabouts, but probably not sooner.

belm0 commented 6 years ago

that's a fair policy-- closing