Opened 6 years ago

Closed 6 years ago

#588 closed defect (fixed)

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 (2)

comment:1 Changed 6 years ago by scoder

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

comment:2 Changed 6 years ago by scoder

  • Resolution set to fixed
  • Status changed from assigned to closed

Fixed here:

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

Note: See TracTickets for help on using tickets.