1. 10 Feb, 2008 2 commits
    • Raymond Hettinger's avatar
    • Eric Smith's avatar
      Added PyNumber_ToBase and supporting routines _PyInt_Format and · 5e527ebe
      Eric Smith authored
      _PyLong_Format.  In longobject.c, changed long_format to
      _PyLong_Format.  In intobject.c, changed uses of PyOS_snprintf to
      _PyInt_Format instead.
      
      _PyLong_Format is similar to py3k's routine of the same name, except
      it has 2 additional parameters: addL and newstyle.  addL was existing
      in long_format, and controls adding the trailing "L".  This is
      unneeded in py3k.  newstyle is used to control whether octal prepends
      "0" (the pre-2.6 style), or "0o" (the 3.0 sytle).
      
      PyNumber_ToBase is needed for PEP 3127 (Integer Literal Support and
      Syntax) and PEP 3101 (Advanced String Formatting).
      
      This changeset does not need merging into py3k.
      5e527ebe
  2. 09 Feb, 2008 11 commits
  3. 08 Feb, 2008 9 commits
  4. 07 Feb, 2008 18 commits