MCPcopy Index your code
hub / github.com/python/cpython / make_special_dict

Method make_special_dict

Lib/test/test_opcache.py:1319–1335  ·  view source on GitHub ↗

Create a dictionary an object with a this table: index | key | value ----- | --- | ----- 0 | 'b' | 'value' 1 | 'b' | NULL

()

Source from the content-addressed store, hash-verified

1317 def test_125868(self):
1318
1319 def make_special_dict():
1320 """Create a dictionary an object with a this table:
1321 index | key | value
1322 ----- | --- | -----
1323 0 | 'b' | 'value'
1324 1 | 'b' | NULL
1325 """
1326 class A:
1327 pass
1328 a = A()
1329 a.a = 1
1330 a.b = 2
1331 d = a.__dict__.copy()
1332 del d['a']
1333 del d['b']
1334 d['b'] = "value"
1335 return d
1336
1337 class NoInlineAorB:
1338 pass

Callers

nothing calls this directly

Calls 2

AClass · 0.70
copyMethod · 0.45

Tested by

no test coverage detected