New submission from Yury Selivanov:

Looks like we have a refleak somewhere in the system that typing.py is exposing.

The following code exposes the refleak:

    def test_refleak(self):
        T = typing.TypeVar('T')
        class C(typing.Generic[T], typing.Mapping[int, str]): ...

The change that first triggered the leak is 8f0df4db2b06.

I'm not an expert in typing.py, but I suspect that the real bug must be 
somewhere in CPython core.

Guido, do you have any idea how 8f0df4db2b06 could trigger this?

----------
components: Library (Lib)
messages: 280407
nosy: gvanrossum, ned.deily, serhiy.storchaka, yselivanov
priority: release blocker
severity: normal
stage: needs patch
status: open
title: refleak in typing.py
type: behavior
versions: Python 3.6, Python 3.7

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue28649>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to