bruno at modulix <[EMAIL PROTECTED]> writes:
> Ben Finney wrote:
> (snip)
> > if __name__ == "__main__":
> > test_funcs = [x for name, x in globals()
> > if name.startswith("test") and hasattr(x, "__call__")
> > ]
>
> Any reason not to use callable(x) here ? (inste
Ben Finney wrote:
(snip)
> if __name__ == "__main__":
> test_funcs = [x for name, x in globals()
> if name.startswith("test") and hasattr(x, "__call__")
> ]
Any reason not to use callable(x) here ? (instead of hasattr(x, "__call__"))
--
bruno desthuilliers
python