Re: [ovs-dev] [PATCH 04/11] python: Drop use of types.FunctionType.

2016-02-02 Thread Ben Pfaff
On Fri, Jan 22, 2016 at 09:32:26PM -0500, Russell Bryant wrote: > This code asserted that the callback argument was of type > types.FunctionType. It's more pythonic to just check that the argument > is callable, and not specifically that it's a function. There are other > ways to implement a call

[ovs-dev] [PATCH 04/11] python: Drop use of types.FunctionType.

2016-01-22 Thread Russell Bryant
This code asserted that the callback argument was of type types.FunctionType. It's more pythonic to just check that the argument is callable, and not specifically that it's a function. There are other ways to implement a callback than types.FunctionType. Signed-off-by: Russell Bryant --- pytho