Andrew Breza

34%
Flag icon
Example 10-8. The promos list is built by introspection of a new promotions module from decimal import Decimal import inspect from strategy import Order import promotions promos = [func for _, func in inspect.getmembers(promotions, inspect.isfunction)]
Fluent Python: Clear, Concise, and Effective Programming
Rate this book
Clear rating
Open Preview