Ticket #588 (closed defect: fixed)

Opened 4 years ago

Last modified 4 years ago

Octal integers do not work as Python integers

Reported by: scoder Owned by: scoder
Priority: major Milestone: 0.14
Component: Code Generation Keywords:


The following generates broken C code:

cdef object intval = 0o123

The octal literal ends up unchanged in the C source.

Change History

Changed 4 years ago by scoder

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

Changed 4 years ago by scoder

  • status changed from assigned to closed
  • resolution set to fixed

Fixed here:


Also unifies different integer spellings into a single cached Python integer constant.

Note: See TracTickets for help on using tickets.