Message291150
Doesn't seem like a bug to me.
Even if there was special support for "partial" objects, that won't help with other ways of producing the same sort of thing.
test2 = functools.partial(test, a=10)
@functools.wraps(test)
def test2():
return test(a=10)
Both ways produce a callable that returns a generator-iterator instance, but neither callables are really generator functions. |
|
Date |
User |
Action |
Args |
2017-04-05 02:01:08 | martin.panter | set | recipients:
+ martin.panter, Thomas Antony |
2017-04-05 02:01:08 | martin.panter | set | messageid: <1491357668.39.0.8833777643.issue29987@psf.upfronthosting.co.za> |
2017-04-05 02:01:08 | martin.panter | link | issue29987 messages |
2017-04-05 02:01:07 | martin.panter | create | |
|