1. 13 Agu, 2013 1 kayıt (commit)
  2. 27 Nis, 2012 1 kayıt (commit)
    • Victor Stinner's avatar
      Simplify and optimize formatlong() · d0880d57
      Victor Stinner yazdı
       * Remove _PyBytes_FormatLong(): inline it into formatlong()
       * the input type is always a long, so remove the code for bool
       * don't duplicate the string if the length does not change
       * Use PyUnicode_DATA() instead of _PyUnicode_AsString()
      d0880d57
  3. 03 Ara, 2010 1 kayıt (commit)
  4. 17 Eki, 2010 1 kayıt (commit)
  5. 16 Nis, 2009 1 kayıt (commit)
    • Eric Smith's avatar
      The other half of Issue #1580: use short float repr where possible. · 0923d1d8
      Eric Smith yazdı
      Addresses the float -> string conversion, using David Gay's code which
      was added in Mark Dickinson's checkin r71663.
      
      Also addresses these, which are intertwined with the short repr
      changes:
      
      - Issue #5772: format(1e100, '<') produces '1e+100', not '1.0e+100'
      - Issue #5515: 'n' formatting with commas no longer works poorly
          with leading zeros.
      - PEP 378 Format Specifier for Thousands Separator: implemented
          for floats.
      0923d1d8
  6. 03 Nis, 2009 1 kayıt (commit)
    • Eric Smith's avatar
      Added ',' thousands grouping to int.__format__. See PEP 378. · a3b1ac8d
      Eric Smith yazdı
      This is incomplete, but I want to get some version into the next alpha. I am still working on:
      Documentation.
      More tests.
      Implement for floats.
      
      In addition, there's an existing bug with 'n' formatting that carries forward to thousands grouping (issue 5515).
      a3b1ac8d
  7. 16 Şub, 2009 1 kayıt (commit)
  8. 26 Agu, 2008 1 kayıt (commit)
  9. 24 Haz, 2008 1 kayıt (commit)
  10. 11 Haz, 2008 1 kayıt (commit)
  11. 10 Haz, 2008 1 kayıt (commit)
    • Georg Brandl's avatar
      Merged revisions… · 0c77a82c
      Georg Brandl yazdı
      Merged revisions 63829-63831,63858,63865,63879,63882,63948,63970-63972,63976,63989,64014-64015,64021-64022,64063-64065,64067 via svnmerge from
      svn+ssh://pythondev@svn.python.org/python/trunk
      
      ........
        r63829 | mark.summerfield | 2008-05-31 15:05:34 +0200 (Sat, 31 May 2008) | 4 lines
      
        Added a note to [] that special forms & special chars lose their meaning
        and backrefs can't be used inside []
      ........
        r63830 | georg.brandl | 2008-05-31 16:40:09 +0200 (Sat, 31 May 2008) | 2 lines
      
        #3010: clarification about stdin/use_rawinput.
      ........
        r63831 | georg.brandl | 2008-05-31 16:45:55 +0200 (Sat, 31 May 2008) | 2 lines
      
        #3005: add explaining sentence to easydialogs docs.
      ........
        r63858 | georg.brandl | 2008-06-01 18:41:31 +0200 (Sun, 01 Jun 2008) | 2 lines
      
        Add plain text make target.
      ........
        r63865 | georg.brandl | 2008-06-01 21:24:36 +0200 (Sun, 01 Jun 2008) | 2 lines
      
        Spaces vs. tabs.
      ........
        r63879 | gregory.p.smith | 2008-06-02 00:57:47 +0200 (Mon, 02 Jun 2008) | 3 lines
      
        Make the _H #define's match the header file names.  Fix comments to
        mention the correct type names.
      ........
        r63882 | gregory.p.smith | 2008-06-02 01:48:47 +0200 (Mon, 02 Jun 2008) | 3 lines
      
        Adds a Thread.getIdent() method to provide the _get_ident() value for
        any given threading.Thread object.  feature request issue 2871.
      ........
        r63948 | alexandre.vassalotti | 2008-06-04 22:41:44 +0200 (Wed, 04 Jun 2008) | 2 lines
      
        Fixed complex.__getnewargs__() to not emit another complex object.
      ........
        r63970 | andrew.kuchling | 2008-06-06 01:33:54 +0200 (Fri, 06 Jun 2008) | 1 line
      
        Document 'utc' parameter
      ........
        r63971 | andrew.kuchling | 2008-06-06 01:35:31 +0200 (Fri, 06 Jun 2008) | 1 line
      
        Add various items
      ........
        r63972 | andrew.kuchling | 2008-06-06 01:35:48 +0200 (Fri, 06 Jun 2008) | 1 line
      
        Grammar fix
      ........
        r63976 | georg.brandl | 2008-06-06 09:34:50 +0200 (Fri, 06 Jun 2008) | 2 lines
      
        Markup fix.
      ........
        r63989 | thomas.heller | 2008-06-06 20:42:11 +0200 (Fri, 06 Jun 2008) | 2 lines
      
        Add a reminder for the maintainer of whatsnew.
      ........
        r64014 | georg.brandl | 2008-06-07 17:59:10 +0200 (Sat, 07 Jun 2008) | 3 lines
      
        Factor out docstring dedenting from inspect.getdoc() into inspect.cleandoc()
        to ease standalone use of the algorithm.
      ........
        r64015 | georg.brandl | 2008-06-07 18:04:01 +0200 (Sat, 07 Jun 2008) | 2 lines
      
        Revert unwanted changes.
      ........
        r64021 | georg.brandl | 2008-06-07 20:16:12 +0200 (Sat, 07 Jun 2008) | 2 lines
      
        X-ref to numbers module.
      ........
        r64022 | georg.brandl | 2008-06-07 20:17:37 +0200 (Sat, 07 Jun 2008) | 3 lines
      
        Document the "st" API, to avoid confusion with the "new" AST.
        Add a note about using the new AST module.
      ........
        r64063 | martin.v.loewis | 2008-06-10 07:03:35 +0200 (Tue, 10 Jun 2008) | 2 lines
      
        Add Gregor Lingl.
      ........
        r64064 | georg.brandl | 2008-06-10 09:45:28 +0200 (Tue, 10 Jun 2008) | 2 lines
      
        Add the "ast" module, containing helpers to ease use of the "_ast" classes.
      ........
        r64065 | raymond.hettinger | 2008-06-10 09:57:15 +0200 (Tue, 10 Jun 2008) | 1 line
      
        Add Arnaud for his efforts on multi-arg set operations.
      ........
        r64067 | georg.brandl | 2008-06-10 14:46:39 +0200 (Tue, 10 Jun 2008) | 2 lines
      
        #2536: fix itertools.permutations and itertools.combinations docstrings.
      ........
      0c77a82c
  12. 09 Haz, 2008 1 kayıt (commit)
  13. 01 Haz, 2008 1 kayıt (commit)
  14. 30 May, 2008 1 kayıt (commit)
  15. 26 May, 2008 5 kayıt (commit)
  16. 26 Mar, 2008 1 kayıt (commit)
    • Christian Heimes's avatar
      Merged revisions… · 1a6387e6
      Christian Heimes yazdı
      Merged revisions 61750,61752,61754,61756,61760,61763,61768,61772,61775,61805,61809,61812,61819,61917,61920,61930,61933-61934 via svnmerge from
      svn+ssh://pythondev@svn.python.org/python/branches/trunk-bytearray
      
      ........
        r61750 | christian.heimes | 2008-03-22 20:47:44 +0100 (Sat, 22 Mar 2008) | 1 line
      
        Copied files from py3k w/o modifications
      ........
        r61752 | christian.heimes | 2008-03-22 20:53:20 +0100 (Sat, 22 Mar 2008) | 7 lines
      
        Take One
        * Added initialization code, warnings, flags etc. to the appropriate places
        * Added new buffer interface to string type
        * Modified tests
        * Modified Makefile.pre.in to compile the new files
        * Added bytesobject.c to Python.h
      ........
        r61754 | christian.heimes | 2008-03-22 21:22:19 +0100 (Sat, 22 Mar 2008) | 2 lines
      
        Disabled bytearray.extend for now since it causes an infinite recursion
        Fixed serveral unit tests
      ........
        r61756 | christian.heimes | 2008-03-22 21:43:38 +0100 (Sat, 22 Mar 2008) | 5 lines
      
        Added PyBytes support to several places:
        str + bytearray
        ord(bytearray)
        bytearray(str, encoding)
      ........
        r61760 | christian.heimes | 2008-03-22 21:56:32 +0100 (Sat, 22 Mar 2008) | 1 line
      
        Fixed more unit tests related to type('') is not unicode
      ........
        r61763 | christian.heimes | 2008-03-22 22:20:28 +0100 (Sat, 22 Mar 2008) | 2 lines
      
        Fixed more unit tests
        Fixed bytearray.extend
      ........
        r61768 | christian.heimes | 2008-03-22 22:40:50 +0100 (Sat, 22 Mar 2008) | 1 line
      
        Implemented old buffer interface for bytearray
      ........
        r61772 | christian.heimes | 2008-03-22 23:24:52 +0100 (Sat, 22 Mar 2008) | 1 line
      
        Added backport of the io module
      ........
        r61775 | christian.heimes | 2008-03-23 03:50:49 +0100 (Sun, 23 Mar 2008) | 1 line
      
        Fix str assignement to bytearray. Assignment of a str of size 1 is interpreted as a single byte
      ........
        r61805 | christian.heimes | 2008-03-23 19:33:48 +0100 (Sun, 23 Mar 2008) | 3 lines
      
        Fixed more tests
        Fixed bytearray() comparsion with unicode()
        Fixed iterator assignment of bytearray
      ........
        r61809 | christian.heimes | 2008-03-23 21:02:21 +0100 (Sun, 23 Mar 2008) | 2 lines
      
        str(bytesarray()) now returns the bytes and not the representation of the bytearray object
        Enabled and fixed more unit tests
      ........
        r61812 | christian.heimes | 2008-03-23 21:53:08 +0100 (Sun, 23 Mar 2008) | 3 lines
      
        Clear error PyNumber_AsSsize_t() fails
        Use CHARMASK for ob_svall access
        disabled a test with memoryview again
      ........
        r61819 | christian.heimes | 2008-03-23 23:05:57 +0100 (Sun, 23 Mar 2008) | 1 line
      
        Untested updates to the PCBuild directory
      ........
        r61917 | christian.heimes | 2008-03-26 00:57:06 +0100 (Wed, 26 Mar 2008) | 1 line
      
        The type system of Python 2.6 has subtle differences to 3.0's. I've removed the Py_TPFLAGS_BASETYPE flags from bytearray for now. bytearray can't be subclasses until the issues with bytearray subclasses are fixed.
      ........
        r61920 | christian.heimes | 2008-03-26 01:44:08 +0100 (Wed, 26 Mar 2008) | 2 lines
      
        Disabled last failing test
        I don't understand what the test is testing and how it suppose to work. Ka-Ping, please check it out.
      ........
        r61930 | christian.heimes | 2008-03-26 12:46:18 +0100 (Wed, 26 Mar 2008) | 1 line
      
        Re-enabled bytes warning code
      ........
        r61933 | christian.heimes | 2008-03-26 13:20:46 +0100 (Wed, 26 Mar 2008) | 1 line
      
        Fixed a bug in the new buffer protocol. The buffer slots weren't copied into a subclass.
      ........
        r61934 | christian.heimes | 2008-03-26 13:25:09 +0100 (Wed, 26 Mar 2008) | 1 line
      
        Re-enabled bytearray subclassing - all tests are passing.
      ........
      1a6387e6
  17. 19 Ara, 2007 1 kayıt (commit)
  18. 29 Kas, 2007 1 kayıt (commit)
  19. 25 Agu, 2007 1 kayıt (commit)
  20. 19 Agu, 2007 1 kayıt (commit)
    • Neal Norwitz's avatar
      Code review of the new buffer protocol. Mostly add questions that should · faa54a39
      Neal Norwitz yazdı
      be answered with the comments removed.
      
      There are many places that require checks when doing arithmetic for memory
      sizes when allocating memory.  Otherwise, overflow is possible with
      a subsequent crash.
      
      Fix SF #1777057 which was a result of not initializing the new BufferError
      properly.  Had to update the test for exceptions for BufferError too.
      faa54a39
  21. 18 Agu, 2007 1 kayıt (commit)
  22. 21 Tem, 2007 2 kayıt (commit)
    • Martin v. Löwis's avatar
      Fix merge breakage. · 5d7428b8
      Martin v. Löwis yazdı
      5d7428b8
    • Martin v. Löwis's avatar
      Merged revisions 56467-56482 via svnmerge from · 9f2e3469
      Martin v. Löwis yazdı
      svn+ssh://pythondev@svn.python.org/python/branches/p3yk
      
      ................
        r56477 | martin.v.loewis | 2007-07-21 09:04:38 +0200 (Sa, 21 Jul 2007) | 11 lines
      
        Merged revisions 56466-56476 via svnmerge from
        svn+ssh://pythondev@svn.python.org/python/trunk
      
        ........
          r56476 | martin.v.loewis | 2007-07-21 08:55:02 +0200 (Sa, 21 Jul 2007) | 4 lines
      
          PEP 3123: Provide forward compatibility with Python 3.0, while keeping
          backwards compatibility. Add Py_Refcnt, Py_Type, Py_Size, and
          PyVarObject_HEAD_INIT.
        ........
      ................
        r56478 | martin.v.loewis | 2007-07-21 09:47:23 +0200 (Sa, 21 Jul 2007) | 2 lines
      
        PEP 3123: Use proper C inheritance for PyObject.
      ................
        r56479 | martin.v.loewis | 2007-07-21 10:06:55 +0200 (Sa, 21 Jul 2007) | 3 lines
      
        Add longintrepr.h to Python.h, so that the compiler can
        see that PyFalse is really some kind of PyObject*.
      ................
        r56480 | martin.v.loewis | 2007-07-21 10:47:18 +0200 (Sa, 21 Jul 2007) | 2 lines
      
        Qualify SHIFT, MASK, BASE.
      ................
        r56482 | martin.v.loewis | 2007-07-21 19:10:57 +0200 (Sa, 21 Jul 2007) | 2 lines
      
        Correctly refer to _ob_next.
      ................
      9f2e3469
  23. 14 Haz, 2007 1 kayıt (commit)
  24. 13 Nis, 2007 1 kayıt (commit)
  25. 05 May, 2006 1 kayıt (commit)
    • Guido van Rossum's avatar
      Optimizations for bytes reallocation. · a0867f79
      Guido van Rossum yazdı
      This uses up to 12.5% overallocation, not entirely unlike list_resize().
      Could probably use more tweaks for odd allocation patterns, TBD.
      
      Also add __alloc__() method which returns the actually allocated size.
      
      PS. I'm now convinced that we need something like "".join(); later.
      a0867f79
  26. 24 Nis, 2006 1 kayıt (commit)
  27. 22 Nis, 2006 1 kayıt (commit)