You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 25, 2020. It is now read-only.
Since using __all__ for dir() is just __dir__ = lambda: __all__, there's no need for code to handle that case. But it should at least be documented so people know that if they come looking for it. If people want common module names as well then it simply becomes __dir__ = lambda: frozenset(__all__) + modutil.COMMON_MODULE_ATTRS (once again, not complicated enough to need code, but perhaps docs to cover the idea).
Since using
__all__
fordir()
is just__dir__ = lambda: __all__
, there's no need for code to handle that case. But it should at least be documented so people know that if they come looking for it. If people want common module names as well then it simply becomes__dir__ = lambda: frozenset(__all__) + modutil.COMMON_MODULE_ATTRS
(once again, not complicated enough to need code, but perhaps docs to cover the idea).Inspired by @glyph and his 'publication' project.
The text was updated successfully, but these errors were encountered: