On Sat, Apr 19, 2008 at 9:12 AM, Georg Brandl <[EMAIL PROTECTED]> wrote:
> Christian Heimes schrieb:
> >
> > How do you like a macro or function PyErr_Warn3k(msg) that does all the
> > dirty work?
>
> Which additional dirty work would it do? It should never have to do more than
> check a simple static C variable, for obvious reasons.
Even if there's no dirty work, it could clean up this:
if (Py_Py3kWarningFlag &&
PyErr_WarnEx(PyErr_DeprecationWarning, "msg", 2) < 0)
to
if (PyErr_WarnPy3k("msg", 2) < 0)
>
> Georg
--
Cheers,
Benjamin Peterson
_______________________________________________
Python-Dev mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe:
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com