def __deepcopy__(self, memo):
        """Copy all the attributes even if __dict__ only returns the pairs
           with non-null values."""
        result = self.__copy__()
        memo[id(self)] = result
        return result
Copy all the attributes even if __dict__ only returns the pairs
           with non-null values.
hpccm/toolchain.py