[New-bugs-announce] [issue23726] Don't enable GC for classes that don't add new fields

Eugene Toder report at bugs.python.org
Fri Mar 20 21:25:57 CET 2015


New submission from Eugene Toder:

As far as I can tell, if a new class does not add any new fields, and its base class doesn't use GC, there's no reason to enable GC for the new class.
This is useful for creating lightweight wrappers around classes implemented in C.

----------
files: class_gc.diff
keywords: patch
messages: 238718
nosy: eltoder, pitrou
priority: normal
severity: normal
status: open
title: Don't enable GC for classes that don't add new fields
type: performance
versions: Python 3.6
Added file: http://bugs.python.org/file38610/class_gc.diff

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue23726>
_______________________________________


More information about the New-bugs-announce mailing list