Vinay Sajip <vinay_sa...@yahoo.co.uk> added the comment:
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. ---------- resolution: fixed -> stage: resolved -> status: closed -> open _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue16575> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com