P4DTI issue job000384

TitleP4DTI will stop working in Python 3.0
Statusclosed
Prioritynice
Assigned userGareth Rees
OrganizationRavenbrook
DescriptionIn Python 3.0, the meaning of the division operator will change [1]. This will cause the P4DTI to stop working.
AnalysisUse int(math.floor(x/y)) instead of x/y for each integer division.
In fact there's only one such occurrence, in message.py.
How foundinspection
Evidence[1] <http://www.amk.ca/python/2.2/index.html#SECTION000500000000000000000>
Observed in1.1.6
Introduced in1.0.0
Created byGareth Rees
Created on2001-08-16 13:36:59
Last modified byGareth Rees
Last modified on2001-12-10 19:54:41
History2001-08-16 GDR Created.

Fixes

Change Effect Date User Description
14963 closed 2001-08-16 13:44:30 Gareth Rees Made division operator portable between Python releases.