Ronald Oussoren added the comment: This is an alternate patch, it replaces the PyObject_INIT and PyObject_INIT_VAR macros by inline functions with macro wrappers for compatibility (the macros are used to suppress type warnings).
I don't particularly like my patch, but it might be a better way to ensure that the warning stays away and also fixes the warning in 3th-party code. BTW. I wouldn't mind feedback of other core developers on either patch. ---------- Added file: http://bugs.python.org/file28957/redefine-init-macros.txt _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue15730> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com