[EMAIL PROTECTED] schrieb: >>>> 1. For 2.5.1, rewrite slot_nb_inplace_power to raise an exception >>>> if the third argument is not None, and then invoke __ipow__ with only one >>>> argument. > > Why would you change Py2.5? There is no bug here.
There is: slot_nb_inplace has the signature static PyObject * slot_nb_inplace_power(PyObject *self, PyObject * arg1) yet it is stored in as_number.nb_inplace_power, which is defined as typedef PyObject * (*ternaryfunc)(PyObject *, PyObject *, PyObject *); ternaryfunc nb_inplace_power; This has undefined behavior. Even if it had, slot_nb_inplace_power would silently discard its third argument. Regards, Martin _______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com