Module __export__ variables
Discussions on Python.org
Module __export__ variables
For some background, I was looking at PRs earlier today, and I saw this comment by Hugo about underscored imports in argparse: I see the import copy as _copy pattern in older CPython code, but don’t really know the reason; is it to avoid argparse.copy appearing like a public API? This got me thinking about solutions beyond prefixing, because I figured this problem applied to most modules, and prefixing isn’t exactly a nice solution for maintainers. I came up with the idea for a module __expo...
0 comments
No comments yet.