Home
last modified time | relevance | path

Searched refs:deepcopy (Results 1 – 25 of 228) sorted by relevance

12345678910

/external/python/cpython3/Lib/
Dcopy.py132 def deepcopy(x, memo=None, _nil=[]): function
210 def _deepcopy_list(x, memo, deepcopy=deepcopy): argument
215 append(deepcopy(a, memo))
219 def _deepcopy_tuple(x, memo, deepcopy=deepcopy): argument
220 y = [deepcopy(a, memo) for a in x]
236 def _deepcopy_dict(x, memo, deepcopy=deepcopy): argument
240 y[deepcopy(key, memo)] = deepcopy(value, memo)
247 return type(x)(x.__func__, deepcopy(x.__self__, memo))
270 deepcopy=deepcopy): argument
273 args = (deepcopy(arg, memo) for arg in args)
[all …]
/external/python/cpython3/Lib/test/
Dtest_copy.py267 y = copy.deepcopy(x)
275 y = copy.deepcopy(x)
290 self.assertEqual(copy.deepcopy(C), C)
299 y = copy.deepcopy(x)
312 self.assertRaises(TypeError, copy.deepcopy, x)
314 y = copy.deepcopy(x)
325 y = copy.deepcopy(x)
336 y = copy.deepcopy(x)
347 self.assertRaises(copy.Error, copy.deepcopy, x)
362 self.assertIs(copy.deepcopy(x), x)
[all …]
/external/python/cpython2/Lib/test/
Dtest_copy.py219 y = copy.deepcopy(x)
227 y = copy.deepcopy(x)
242 self.assertEqual(copy.deepcopy(C), C)
251 y = copy.deepcopy(x)
264 self.assertRaises(TypeError, copy.deepcopy, x)
266 y = copy.deepcopy(x)
275 y = copy.deepcopy(x)
283 y = copy.deepcopy(x)
293 self.assertRaises(copy.Error, copy.deepcopy, x)
308 self.assertTrue(copy.deepcopy(x) is x, repr(x))
[all …]
/external/python/cpython2/Lib/
Dcopy.py145 def deepcopy(x, memo=None, _nil=[]): function
230 y.append(deepcopy(a, memo))
237 y.append(deepcopy(a, memo))
257 y[deepcopy(key, memo)] = deepcopy(value, memo)
264 return type(x)(x.im_func, deepcopy(x.im_self, memo), x.im_class)
288 args = deepcopy(args, memo)
298 state = deepcopy(state, memo)
328 args = deepcopy(args, memo)
334 state = deepcopy(state, memo)
351 item = deepcopy(item, memo)
[all …]
Dweakref.py138 from copy import deepcopy
145 new[deepcopy(key, memo)] = o
382 from copy import deepcopy
387 new[o] = deepcopy(value, memo)
/external/python/oauth2client/tests/contrib/django_util/
Dtest_django_util.py42 self.save_settings = copy.deepcopy(django.conf.settings)
49 django.conf.settings = copy.deepcopy(self.save_settings)
128 self.save_settings = copy.deepcopy(django.conf.settings)
133 django.conf.settings = copy.deepcopy(self.save_settings)
152 self.save_settings = copy.deepcopy(django.conf.settings)
164 django.conf.settings = copy.deepcopy(self.save_settings)
Dtest_decorators.py36 self.save_settings = copy.deepcopy(django.conf.settings)
47 django.conf.settings = copy.deepcopy(self.save_settings)
113 self.save_settings = copy.deepcopy(django.conf.settings)
121 django.conf.settings = copy.deepcopy(self.save_settings)
202 self.save_settings = copy.deepcopy(django.conf.settings)
217 django.conf.settings = copy.deepcopy(self.save_settings)
Dtest_views.py40 self.save_settings = copy.deepcopy(django.conf.settings)
46 django.conf.settings = copy.deepcopy(self.save_settings)
75 self.save_settings = copy.deepcopy(django.conf.settings)
92 django.conf.settings = copy.deepcopy(self.save_settings)
142 self.save_settings = copy.deepcopy(django.conf.settings)
/external/autotest/server/site_tests/hardware_StorageQual/
Dgenerate_storage_qual_control_files.py71 SOAK_QUICK = copy.deepcopy(SOAK)
75 BASE_BEFORE_CQ = copy.deepcopy(BASE_BEFORE)
77 SOAK_CQ = copy.deepcopy(SOAK)
80 BASE_AFTER_CQ = copy.deepcopy(BASE_AFTER)
/external/autotest/client/common_lib/cros/fake_device_server/
Dcommands_unittest.py68 BAD_COMMAND = copy.deepcopy(GOOD_COMMAND)
99 command1 = self.commands.create_command(copy.deepcopy(COMMAND))
100 command2 = self.commands.create_command(copy.deepcopy(COMMAND))
/external/autotest/server/hosts/
Dhost_info.py291 return copy.deepcopy(self._private_cached_info)
300 self._private_cached_info = copy.deepcopy(info)
323 return copy.deepcopy(self.info)
331 self.info = copy.deepcopy(info)
/external/tensorflow/tensorflow/contrib/framework/python/framework/
Dgraph_util.py109 out.node.extend([copy.deepcopy(name_to_node[node])])
124 new_node = copy.deepcopy(name_to_node[n])
131 out.node.extend([copy.deepcopy(name_to_node[n])])
/external/autotest/cli/
Daction_common_unittest.py22 filters = copy.deepcopy(orig_filters)
23 checks = copy.deepcopy(orig_checks)
34 filters = copy.deepcopy(orig_filters)
35 checks = copy.deepcopy(orig_checks)
76 filters = copy.deepcopy(orig_filters)
77 checks = copy.deepcopy(orig_checks)
/external/tensorflow/tensorflow/contrib/copy_graph/python/util/
Dcopy_elements.py33 from copy import deepcopy
204 new_node_def = deepcopy(op.node_def)
214 op_def = deepcopy(op.op_def)
/external/scapy/scapy/contrib/
Dmacsec.py101 hdr = copy.deepcopy(pkt)
118 packet = copy.deepcopy(orig_pkt)
129 hdr = copy.deepcopy(orig_pkt)
156 hdr = copy.deepcopy(orig_pkt)
/external/python/cpython3/Lib/test/test_email/
Dtest_pickleable.py28 h = copy.deepcopy(header)
65 msg2 = copy.deepcopy(msg)
/external/tensorflow/tensorflow/python/distribute/
Ddistribute_coordinator.py245 session_config = copy.deepcopy(config)
268 return copy.deepcopy(self._session_config)
283 return copy.deepcopy(self._cluster_spec)
336 session_config = copy.deepcopy(session_config)
337 strategy = copy.deepcopy(strategy)
540 strategy = copy.deepcopy(strategy)
Destimator_training.py223 local_estimator = copy.deepcopy(estimator)
256 local_estimator = copy.deepcopy(estimator)
322 local_estimator = copy.deepcopy(estimator)
371 local_estimator = copy.deepcopy(estimator)
/external/fonttools/Lib/fontTools/varLib/
Dinterpolate_layout.py11 from copy import deepcopy
41 font = deepcopy(master_fonts[ds.base_idx])
/external/autotest/client/site_tests/firmware_TouchMTB/geometry/
Dminicircle.py100 P = copy.deepcopy(P)
101 R = copy.deepcopy(R)
/external/tensorflow/tensorflow/python/profiler/
Doption_builder.py69 self._options = copy.deepcopy(options)
199 return copy.deepcopy(self._options)
/external/python/cpython3/Doc/library/
Dcopy.rst25 .. function:: deepcopy(x[, memo])
53 The :func:`deepcopy` function avoids these problems by:
86 to make a deep copy of a component, it should call the :func:`deepcopy` function
/external/autotest/server/cros/chaos_lib/
Dchaos_parser.py234 static_config_csv_list = copy.deepcopy(base_csv_list)
238 dynamic_config_csv_list = copy.deepcopy(base_csv_list)
242 connect_csv_list = copy.deepcopy(base_csv_list)
/external/python/cpython2/Doc/library/
Dcopy.rst21 .. function:: deepcopy(x)
49 The :func:`deepcopy` function avoids these problems by:
85 to make a deep copy of a component, it should call the :func:`deepcopy` function
/external/tensorflow/tensorflow/contrib/layers/python/layers/
Dfeature_column_test.py141 weighted_copy = copy.deepcopy(weighted)
158 column_copy = copy.deepcopy(column)
176 column_copy = copy.deepcopy(column)
310 columns_copy = copy.deepcopy(columns)
462 column_copy = copy.deepcopy(column)
626 column_copy = copy.deepcopy(column)
672 bucketized_copy = copy.deepcopy(bucketized)
701 crossed_copy = copy.deepcopy(crossed)
808 column_copy = copy.deepcopy(column)
817 column_copy = copy.deepcopy(column)
[all …]

12345678910