STINNER Victor <vstin...@python.org> added the comment:

> The problem of the PyDescr_SET_NAME() and PyDescr_SET_Type() approach is that 
> SWIG code is outdated: it doesn't initialized the PyDescrObject.d_qualname 
> member added to Python 3.3 (bpo-13577, commit 
> 9d57481f043cb9b94bfc45c1ee041415d915cf8a).

I checked: Oh, in practice, it's not an issue since PyType_GenericAlloc() 
initializes the memory to zero. So the code "just works".

----------

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

Reply via email to