Ticket #343 (closed defect: fixed)

Opened 5 years ago

Last modified 5 years ago

__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) (diff)

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

Changed 5 years ago by scoder

  • owner changed from somebody to scoder
  • status changed from new to assigned

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

Changed 5 years ago by scoder

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