コード例 #1
0
    def __copy__(self):
        """
        Forbid :class:`~iris._data_manager.DataManager` instance
        shallow-copy support.

        """
        name = type(self).__name__
        emsg = ('Shallow-copy of {!r} is not permitted. Use '
                'copy.deepcopy() or {}.copy() instead.')
        raise copy.Error(emsg.format(name, name))
コード例 #2
0
ファイル: base.py プロジェクト: daggaz/json-stream
 def __deepcopy__(self, memo):
     raise copy.Error("Copying json_steam objects leads to a bad time")
コード例 #3
0
ファイル: base.py プロジェクト: daggaz/json-stream
 def __copy__(self):
     raise copy.Error("Copying json_steam objects leads to a bad time")