Glyph Lefkowitz has an interesting idea on
his blog with a module for managing symbols exported publicly from your code. What he has looks like it needs to be called directly, but at least the
explicitly() function could probably be implemented as a decorator and become
very handy. No more forgetting to modify
__all__ when you add a symbol, just decorate it as exported.
0 comments:
Post a Comment