1. 23 Şub, 2010 1 kayıt (commit)
  2. 22 Şub, 2010 1 kayıt (commit)
  3. 29 Kas, 2009 1 kayıt (commit)
  4. 23 Kas, 2009 1 kayıt (commit)
  5. 30 Tem, 2009 1 kayıt (commit)
  6. 27 Tem, 2009 1 kayıt (commit)
  7. 05 May, 2009 1 kayıt (commit)
  8. 02 May, 2009 1 kayıt (commit)
  9. 30 Nis, 2009 1 kayıt (commit)
  10. 22 Nis, 2009 2 kayıt (commit)
    • Eric Smith's avatar
    • Eric Smith's avatar
      Backport of some of the work in r71665 to trunk. This reworks much of · aca19e6a
      Eric Smith yazdı
      int, long, and float __format__(), and it keeps their implementation
      in sync with py3k.
      
      Also added PyOS_double_to_string. This is the "fallback" version
      that's also available in trunk, and should be kept in sync with that
      code. I'll add an issue to document PyOS_double_to_string in the C
      API.
      
      There are many internal cleanups. Externally visible changes include:
      
      - Implement PEP 378, Format Specifier for Thousands Separator, for
        floats, ints, and longs.
      
      - Issue #5515: 'n' formatting for ints, longs, and floats handles
        leading zero formatting poorly.
      
      - Issue #5772: For float.__format__, don't add a trailing ".0" if
        we're using no type code and we have an exponent.
      aca19e6a
  11. 13 Nis, 2009 1 kayıt (commit)
  12. 29 Mar, 2009 1 kayıt (commit)
  13. 20 Şub, 2009 1 kayıt (commit)
  14. 24 Agu, 2008 1 kayıt (commit)
    • Neal Norwitz's avatar
      Fix: · 18aa388c
      Neal Norwitz yazdı
       * crashes on memory allocation failure found with failmalloc
       * memory leaks found with valgrind
       * compiler warnings in opt mode which would lead to invalid memory reads
       * problem using wrong name in decimal module reported by pychecker
      
      Update the valgrind suppressions file with new leaks that are small/one-time
      leaks we don't care about (ie, they are too hard to fix).
      
      TBR=barry
      TESTED=./python -E -tt ./Lib/test/regrtest.py -uall (both debug and opt modes)
        in opt mode:
        valgrind -q --leak-check=yes --suppressions=Misc/valgrind-python.supp \
          ./python -E -tt ./Lib/test/regrtest.py -uall,-bsddb,-compiler \
                              -x test_logging test_ssl test_multiprocessing
        valgrind -q --leak-check=yes --suppressions=Misc/valgrind-python.supp \
          ./python -E -tt ./Lib/test/regrtest.py test_multiprocessing
        for i in `seq 1 4000` ; do
          LD_PRELOAD=~/local/lib/libfailmalloc.so FAILMALLOC_INTERVAL=$i \
              ./python -c pass
        done
      
      At least some of these fixes should probably be backported to 2.5.
      18aa388c
  15. 17 Tem, 2008 2 kayıt (commit)
  16. 16 Tem, 2008 2 kayıt (commit)
  17. 15 Tem, 2008 1 kayıt (commit)
  18. 24 Haz, 2008 3 kayıt (commit)
  19. 30 May, 2008 1 kayıt (commit)
  20. 26 May, 2008 1 kayıt (commit)
  21. 11 May, 2008 1 kayıt (commit)
    • Eric Smith's avatar
      Addresses issue 2802: 'n' formatting for integers. · cf537ff3
      Eric Smith yazdı
      Adds 'n' as a format specifier for integers, to mirror the same
      specifier which is already available for floats.  'n' is the same as
      'd', but inserts the current locale-specific thousands grouping.
      
      I added this as a stringlib function, but it's only used by str type,
      not unicode.  This is because of an implementation detail in
      unicode.format(), which does its own str->unicode conversion.  But the
      unicode version will be needed in 3.0, and it may be needed by other
      code eventually in 2.6 (maybe decimal?), so I left it as a stringlib
      implementation.  As long as the unicode version isn't instantiated,
      there's no overhead for this.
      cf537ff3
  22. 07 Nis, 2008 1 kayıt (commit)
  23. 17 Mar, 2008 1 kayıt (commit)
  24. 20 Şub, 2008 1 kayıt (commit)
  25. 17 Şub, 2008 1 kayıt (commit)
    • Eric Smith's avatar
      Backport of PEP 3101, Advanced String Formatting, from py3k. · a9f7d624
      Eric Smith yazdı
      Highlights:
       - Adding PyObject_Format.
       - Adding string.Format class.
       - Adding __format__ for str, unicode, int, long, float, datetime.
       - Adding builtin format.
       - Adding ''.format and u''.format.
       - str/unicode fixups for formatters.
      
      The files in Objects/stringlib that implement PEP 3101 (stringdefs.h,
      unicodedefs.h, formatter.h, string_format.h) are identical in trunk
      and py3k.  Any changes from here on should be made to trunk, and
      changes will propogate to py3k).
      a9f7d624