mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Issue #23726: Don't enable GC for user subclasses of non-GC types that don't add any new fields.
Patch by Eugene Toder.
This commit is contained in:
parent
56452eea39
commit
a63cc21234
4 changed files with 27 additions and 5 deletions
|
@ -3020,8 +3020,6 @@ order (MRO) for bases """
|
|||
cant(object(), list)
|
||||
cant(list(), object)
|
||||
class Int(int): __slots__ = []
|
||||
cant(2, Int)
|
||||
cant(Int(), int)
|
||||
cant(True, int)
|
||||
cant(2, bool)
|
||||
o = object()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue