MCPcopy Create free account
hub / github.com/numpy/numpy / __dir__

Method __dir__

numpy/lib/npyio.py:82–88  ·  view source on GitHub ↗

Enables dir(bagobj) to list the files in an NpzFile. This also enables tab-completion in an interpreter or IPython.

(self)

Source from the content-addressed store, hash-verified

80 raise AttributeError(key) from None
81
82 def __dir__(self):
83 """
84 Enables dir(bagobj) to list the files in an NpzFile.
85
86 This also enables tab-completion in an interpreter or IPython.
87 """
88 return list(object.__getattribute__(self, '_obj').keys())
89
90
91def zipfile_factory(file, *args, **kwargs):

Callers 7

_dtype_ctypes.pyFile · 0.80
_dtype.pyFile · 0.80
umath.pyFile · 0.80
multiarray.pyFile · 0.80
_internal.pyFile · 0.80
test_moved_exceptionsFunction · 0.80

Calls 2

keysMethod · 0.80
__getattribute__Method · 0.45

Tested by 1

test_moved_exceptionsFunction · 0.64