RFC: arbitrary transformation for renderables
dpb at corrigendum.ru
Fri Oct 2 20:17:34 UTC 2015
Pierre Tardy <tardyp at gmail.com> писал в своём письме Fri, 02 Oct 2015
> Hi Roman,
> There is already a renderer function which is similar simplification of
> renderable pattern.
> You can do
> renderer(lambda _: datetime.date.today().isoformat()
> renderer(lambda b: os.path.relpath(p.getProperty('buildir'))
> The latter is a little bit more chars than your solution, but probably
> easy to follow.
I know this, but it doesn't work when the arguments are arbitrary
renderables (since you have to account for the possibility that they
return a Deferred). The brevity is nice to have, too.
More information about the devel