RFC: addCleanup should take *args and **kwargs?
Vincent Ladeuil
v.ladeuil+lp at free.fr
Fri Apr 13 08:54:53 BST 2007
>>>>> "robert" == Robert Collins <robertc at robertcollins.net> writes:
robert> On Fri, 2007-04-13 at 08:03 +0200, Vincent Ladeuil wrote:
>>
>> +1, as long as we take care of checking the presence of the
>> callable *and* its (*args, **kwargs)
robert> What do you mean by this?
addCleanup checks that callable is not already in the cleanup
list, if we use the same callable for different parameters, it
should still be added, not rejected as a dupe.
Nit-picking, better safe than sorry, etc :)
Vincent
More information about the bazaar
mailing list