[issue5362] Add configure option to disable Py3k warnings

Marc-Andre Lemburg report at bugs.python.org
Thu Jan 28 18:13:02 CET 2010

Marc-Andre Lemburg <mal at egenix.com> added the comment:

I'm with Antoine on this one.

Also, instead of removing the flag completely which will cause problems with extensions relying on it, I'd suggest to just disable the PyErr_WarnPy3k(msg, stacklevel) macro and turn it into a no-op if a compile time variable DISABLE_PY3K_WARNINGS (or similar) is defined (which should be undefined per default).

nosy: +lemburg

Python tracker <report at bugs.python.org>

More information about the Python-bugs-list mailing list