MCPcopy Index your code
hub / github.com/ipython/ipython / copy

Method copy

IPython/utils/ipstruct.py:227–237  ·  view source on GitHub ↗

Return a copy as a Struct. Examples -------- >>> s = Struct(a=10,b=30) >>> s2 = s.copy() >>> type(s2) is Struct True

(self)

Source from the content-addressed store, hash-verified

225 return self
226
227 def copy(self):
228 """Return a copy as a Struct.
229
230 Examples
231 --------
232 >>> s = Struct(a=10,b=30)
233 >>> s2 = s.copy()
234 >>> type(s2) is Struct
235 True
236 """
237 return Struct(dict.copy(self))
238
239 def hasattr(self, key):
240 """hasattr function available as a method.

Callers 15

__add__Method · 0.95
__sub__Method · 0.95
link_or_copyFunction · 0.45
mergeMethod · 0.45
check_startup_dirMethod · 0.45
copy_config_fileMethod · 0.45
_ipython_dir_changedMethod · 0.45
var_expandMethod · 0.45
guarded_evalFunction · 0.45
eval_nodeFunction · 0.45

Calls 1

StructClass · 0.85

Tested by

no test coverage detected