[prev in list] [next in list] [prev in thread] [next in thread]
List: pykde
Subject: [PyQt] SIP 4.8: regression in div/truediv
From: Giovanni Bajo <rasky () develer ! com>
Date: 2009-07-24 18:43:10
Message-ID: 4A6A00BE.3080606 () develer ! com
[Download RAW message or body]
Hello,
I'm wrapping with SIP a global C++ operator/() overload, whose first
argument is a SIP-wrapped class (within the same module).
With SIP 4.7, this function is called when I use "/" in Python, both
with standard division behaviour and within modules using "from
__future__ import division".
With SIP 4.8, this function is called only within modules with standard
division behaviour. If a module uses the future directive, using "/" in
Python raises an exception saying that there is no valid operand types.
I believe that the problem is that the truediv_slot of the object is not
being filled. Is this a wanted change in behaviour? And if so, how am I
supposed to fix it?
--
Giovanni Bajo
Develer S.r.l.
http://www.develer.com
_______________________________________________
PyQt mailing list PyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic