MCPcopy Create free account
hub / github.com/ipython/ipython / copy

Method copy

IPython/utils/coloransi.py:120–124  ·  view source on GitHub ↗

Return a full copy of the object, optionally renaming it.

(self,name=None)

Source from the content-addressed store, hash-verified

118 self.colors = Struct(colordict)
119
120 def copy(self,name=None):
121 """Return a full copy of the object, optionally renaming it."""
122 if name is None:
123 name = self.name
124 return ColorScheme(name, self.colors.dict())
125
126class ColorSchemeTable(dict):
127 """General class to handle tables of color schemes.

Callers

nothing calls this directly

Calls 2

ColorSchemeClass · 0.85
dictMethod · 0.80

Tested by

no test coverage detected