mirror of
https://github.com/python/cpython.git
synced 2025-10-07 07:31:46 +00:00
bpo-31333: Re-implement ABCMeta in C (GH-5733)
This adds C versions of methods used by ABCMeta that improve performance of various ABC operations.
This commit is contained in:
parent
7da582d3b5
commit
3892899288
14 changed files with 1638 additions and 534 deletions
|
@ -761,8 +761,8 @@ class GenericTests(BaseTestCase):
|
|||
self.assertIsInstance(1, C)
|
||||
C[int]
|
||||
self.assertIsInstance(1, C)
|
||||
C._abc_registry.clear()
|
||||
C._abc_cache.clear() # To keep refleak hunting mode clean
|
||||
C._abc_registry_clear()
|
||||
C._abc_caches_clear() # To keep refleak hunting mode clean
|
||||
|
||||
def test_false_subclasses(self):
|
||||
class MyMapping(MutableMapping[str, str]): pass
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue