Vladimir

34%
Flag icon
The function inspect.getmembers returns the attributes of an object—in this case, the promotions module—optionally filtered by a predicate (a boolean function). We use inspect.isfunction to get only the functions from the module.
Fluent Python: Clear, Concise, and Effective Programming
Rate this book
Clear rating
Open Preview