On 2019-04-17, DL Neil <[email protected]> wrote: > 2. When the program can still do something useful (if perhaps > feature-limited) without the imported module by substituting > something else in its place.
Isn't this a very common scenario, similar to what package management systems call "optional dependencies"? I maintain a small podcast aggregator that tags podcasts using an external tagging library as an optional dependency---people can choose not to install it if they don't care about tags. That library is imported within a try/except block. Manolo
signature.asc
Description: PGP signature
-- https://mail.python.org/mailman/listinfo/python-list
