Opened 5 years ago

Closed 5 years ago

#343 closed defect (fixed)

__future__.division doesn't apply to constants and C integers

Reported by: scoder Owned by: scoder
Priority: major Milestone: 0.12
Component: Type Analysis Keywords:
Cc:

Description (last modified by scoder)

Constant folding cannot currently handle __future__.division as this only affects code generation. So division on constants will not yield the correct result. The same applies to division operations that involve C integers. This makes the division semantics hard to predict for a given expression.

Change History (3)

comment:1 Changed 5 years ago by scoder

  • Owner changed from somebody to scoder
  • Status changed from new to assigned

comment:2 Changed 5 years ago by scoder

  • Description modified (diff)
  • Summary changed from __future__.division handling happens too late for constant folding to __future__.division doesn't apply to constants and C integers

comment:3 Changed 5 years ago by scoder

  • Resolution set to fixed
  • Status changed from assigned to closed
Note: See TracTickets for help on using tickets.