This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Make objects with empty __slots__ GC types
Type: Stage:
Components: Interpreter Core Versions: Python 3.7
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: gvanrossum, levkivskyi, serhiy.storchaka, vstinner, yselivanov
Priority: normal Keywords: patch

Created on 2016-11-09 18:31 by yselivanov, last changed 2022-04-11 14:58 by admin.

Files
File name Uploaded Description Edit
slots_gc.patch yselivanov, 2016-11-09 18:31 review
Messages (4)
msg280427 - (view) Author: Yury Selivanov (yselivanov) * (Python committer) Date: 2016-11-09 18:31
The attached patch does the trick.  I'm not sure if this should be fixed in 3.6.
msg280435 - (view) Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) Date: 2016-11-09 18:59
Needed tests. If an example with typing causes a leak (msg280422) this should be fixed in all versions that have typing.
msg280445 - (view) Author: Yury Selivanov (yselivanov) * (Python committer) Date: 2016-11-09 19:26
So this patch has no impact on typing.py.  Moreover, it's incomplete and fails test_gc tests, which can be fixed but not in 3.6.
msg286072 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2017-01-23 11:03
This issue was mentioned in another issue when a refleak was found:

http://bugs.python.org/issue24379#msg280456
History
Date User Action Args
2022-04-11 14:58:39adminsetgithub: 72837
2017-01-23 11:03:08vstinnersetnosy: + vstinner
messages: + msg286072
2016-11-13 11:33:54levkivskyisetnosy: + levkivskyi
2016-11-09 19:26:00yselivanovsetmessages: + msg280445
versions: - Python 3.6
2016-11-09 18:59:23serhiy.storchakasetmessages: + msg280435
2016-11-09 18:31:45yselivanovcreate