[Pyrex] Bad code generation in Pyrex 0.9.4.1
Konrad Hinsen
konrad.hinsen at laposte.net
Fri Sep 29 13:16:55 UTC 2006
On Sep 29, 2006, at 2:53, Greg Ewing wrote:
>> cdef class vector:
>> def __div__(vector self, double factor):
> ^^^^
> BTW, you shouldn't assume that the first argument
> to __div__ is self. See Special Methods of Extension
> Types for details.
In this specific case, I want it to fail if called in reverse,
because scalar-by-vector division is not defined.
Konrad
--
---------------------------------------------------------------------
Konrad Hinsen
Centre de Biophysique Moléculaire, CNRS Orléans
Synchrotron Soleil - Division Expériences
Saint Aubin - BP 48
91192 Gif sur Yvette Cedex, France
Tel. +33-1 69 35 97 15
E-Mail: hinsen at cnrs-orleans.fr
---------------------------------------------------------------------
More information about the Pyrex
mailing list