Opened 4 years ago

Closed 4 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:
Cc:

Description

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 4 years ago by scoder

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

comment:2 Changed 4 years ago by scoder

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

Fixed here:

http://hg.cython.org/cython-devel/rev/8ef43993a11b

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

Note: See TracTickets for help on using tickets.