2 ms·
You could use names starting with _ (underscore) for things that you don't want to export. Your module would look like this: import numpy as _np # numpy w
by ciupicri 5y ago
You could use names starting with _ (underscore) for things that you don't want to export.
Your module would look like this:
import numpy as _np # numpy will be hidden
def f(x): return x * 2
def _g(x): return _np.array([x, x]) # _g is a non-public function