def __copy__(self):
cobj = ExHandle(full_cname=self._full_cname, exclude=self._exclude, _copy=True)<EOL>cobj._ex_dict = copy.deepcopy(self._ex_dict)<EOL>cobj._clut = copy.deepcopy(self._clut)<EOL>cobj._exclude_list = self._exclude_list[:]<EOL>cobj._callables_obj = copy.copy(self._callables_obj)<EOL>return cobj<EOL>
Copy object.

For example:

    >>> import copy, pexdoc
    >>> @pexdoc.contract(num=int)
    ... def mynumber(num):
    ...     return num+1
    >>> exhobj = pexdoc.set_exh_obj(pexdoc.ExHandle())
    >>> mynumber(1)
    2
    >>> obj1 = pexdoc.get_exh_obj()
    >>> obj2 = copy.copy(obj1)
    >>> obj1 == obj2
    True