MCPcopy Index your code
hub / github.com/python/cpython / import_member

Method import_member

Lib/test/support/hashlib_helper.py:141–149  ·  view source on GitHub ↗

Import the described member. If *strict* is true, an AttributeError or an ImportError may be raised if importing fails; otherwise, None is returned on error.

(self, *, strict=False)

Source from the content-addressed store, hash-verified

139 return _import_module(self.module_name, strict=strict)
140
141 def import_member(self, *, strict=False):
142 """Import the described member.
143
144 If *strict* is true, an AttributeError or an ImportError may be
145 raised if importing fails; otherwise, None is returned on error.
146 """
147 return _import_member(
148 self.module_name, self.member_name, strict=strict
149 )
150
151
152class _HashInfoBase:

Callers 4

fetch_hmac_functionMethod · 0.80
import_object_typeMethod · 0.80

Calls 1

_import_memberFunction · 0.85

Tested by 1

fetch_hmac_functionMethod · 0.64