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

Method __copy__

numpy/distutils/fcompiler/__init__.py:233–240  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

231 self._is_customised = False
232
233 def __copy__(self):
234 obj = self.__new__(self.__class__)
235 obj.__dict__.update(self.__dict__)
236 obj.distutils_vars = obj.distutils_vars.clone(obj._environment_hook)
237 obj.command_vars = obj.command_vars.clone(obj._environment_hook)
238 obj.flag_vars = obj.flag_vars.clone(obj._environment_hook)
239 obj.executables = obj.executables.copy()
240 return obj
241
242 def copy(self):
243 return self.__copy__()

Callers 1

copyMethod · 0.95

Calls 4

updateMethod · 0.80
cloneMethod · 0.80
__new__Method · 0.45
copyMethod · 0.45

Tested by

no test coverage detected