Saiyang Gou <gousaiyang...@gmail.com> added the comment:

There is a minor issue here. For gc.get_referrers and gc.get_referents, 
probably the format code for PySys_Audit should be "(O)" instead of "O". 
Typically the tuple `args` passed to the hook functions are fixed-length as 
described in the audit events table. Here `objs` itself is a tuple (containing 
variable-length arguments) and directly passed to the audit hook with being 
wrapped by another layer of tuple. If the hook function is to receive a 
variable-length tuple, probably the documentation should be updated to mention 
this.

----------
nosy: +gousaiyang

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

Reply via email to