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.

Author vinay.sajip
Recipients Arfrever, alex, ammar2, arigo, docs@python, eli.bendersky, meador.inge, python-dev, theller, vinay.sajip, vstinner
Date 2020-01-12.07:44:02
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1578815042.64.0.55451552843.issue16575@roundup.psfhosted.org>
In-reply-to
Content
It seems that notwithstanding the issues identified in the original bug report, calls by value of structs containing unions are being used out there in the wild. Examples:

The comtypes library (Windows):
https://github.com/python/cpython/pull/16799#issuecomment-573318591

The ctypesgen library, which is used by other projects across platforms:
https://github.com/davidjamesca/ctypesgen/issues/77

Linux examples:
https://github.com/waveform80/picamera/issues/604
https://github.com/hcpl/xkbgroup/issues/15
https://github.com/enkore/i3pystatus/issues/771

So, it would seem that the simplest course of action is to disable the checks for now. The checks will be commented out and this issue and the related issue bpo-16576 will be reopened.
History
Date User Action Args
2020-01-12 07:44:02vinay.sajipsetrecipients: + vinay.sajip, arigo, theller, vstinner, Arfrever, alex, eli.bendersky, meador.inge, docs@python, python-dev, ammar2
2020-01-12 07:44:02vinay.sajipsetmessageid: <1578815042.64.0.55451552843.issue16575@roundup.psfhosted.org>
2020-01-12 07:44:02vinay.sajiplinkissue16575 messages
2020-01-12 07:44:02vinay.sajipcreate