Re: [py-dev] RFC: draft new resource management API (v1)

2012-06-29 Thread Floris Bruynooghe
On 28 June 2012 16:41, holger krekel hol...@merlinux.eu wrote: It is in some sense logical to extend the funcarg-idea to setup-methods. I used to think that the scoping is a problem, but given the new node.register_factory/getresource() API it could be done somewhat sanely.  It will remain a

[py-dev] RFC: V2 of the new resource setup/parametrization facilities

2012-06-29 Thread holger krekel
Hi all, particularly Floris and Carl, i have finally arrived at the V2 resource-API draft based on the very valuable feedback you gave to the first version. The document implements a largely changed approach, see the Changes from V1 to V2 at the beginning, and focuses on usage-level

Re: [py-dev] RFC: V2 of the new resource setup/parametrization facilities

2012-06-29 Thread Floris Bruynooghe
Hello Holger, On Fri, Jun 29, 2012 at 10:55:23AM +, holger krekel wrote: [...] Direct scoping of funcarg factories [...] Direct parametrization of funcarg factories These two seem fine, but personally I would prefer them to use the same marker with keyword-only arguments::