Opened 5 years ago

Closed 5 years ago

#17413 closed enhancement (fixed)

Integer: support PEP 3127 octal literals

Reported by: jdemeyer Owned by:
Priority: minor Milestone: sage-6.5
Component: basic arithmetic Keywords:
Cc: Merged in:
Authors: Jeroen Demeyer Reviewers: Volker Braun
Report Upstream: N/A Work issues:
Branch: 85a00bd (Commits) Commit: 85a00bd811301a933ca9cc3cc1985ed05f3d2aaf
Dependencies: Stopgaps:

Description (last modified by jdemeyer)

This should work:

sage: Integer("0o10")
8

See https://www.python.org/dev/peps/pep-3127

The old-style literals like "012" should be deprecated.

Change History (6)

comment:1 Changed 5 years ago by jdemeyer

  • Authors set to Jeroen Demeyer
  • Description modified (diff)

comment:2 Changed 5 years ago by jdemeyer

  • Description modified (diff)

comment:3 Changed 5 years ago by jdemeyer

  • Branch set to u/jdemeyer/ticket/17413
  • Created changed from 11/28/14 10:15:57 to 11/28/14 10:15:57
  • Modified changed from 11/28/14 13:37:30 to 11/28/14 13:37:30

comment:4 Changed 5 years ago by jdemeyer

  • Commit set to 85a00bd811301a933ca9cc3cc1985ed05f3d2aaf
  • Status changed from new to needs_review

New commits:

85a00bdSupport PEP 3127 Integer literals

comment:5 Changed 5 years ago by vbraun

  • Reviewers set to Volker Braun
  • Status changed from needs_review to positive_review

comment:6 Changed 5 years ago by vbraun

  • Branch changed from u/jdemeyer/ticket/17413 to 85a00bd811301a933ca9cc3cc1985ed05f3d2aaf
  • Resolution set to fixed
  • Status changed from positive_review to closed
Note: See TracTickets for help on using tickets.