Re: It is really necessary to check that a object has a Py_TPFLAGS_HEAPTYPE flag?

February 2021
6:30 a.m.
New subject: It is really necessary to check that a object has a Py_TPFLAGS_HEAPTYPE flag?
On 2/16/21 11:50 AM, Андрей Казанцев wrote:
As with built-in types, lxml.etree classes and all other static (i.e. non-heap) types are shared between all interpreters in a process. Changing them has the same issues as with built-in types. The check for the Py_TPFLAGS_HEAPTYPE flag is correct.

February 2021
1:30 p.m.
New subject: It is really necessary to check that a object has a Py_TPFLAGS_HEAPTYPE flag?
On 2/16/21 11:50 AM, Андрей Казанцев wrote:
As with built-in types, lxml.etree classes and all other static (i.e. non-heap) types are shared between all interpreters in a process. Changing them has the same issues as with built-in types. The check for the Py_TPFLAGS_HEAPTYPE flag is correct.
1467
Age (days ago)
1467
Last active (days ago)
1 comments
2 participants
participants (2)
-
Petr Viktorin
-
Андрей Казанцев