1. 18 Nis, 2009 1 kayıt (commit)
  2. 02 Nis, 2009 1 kayıt (commit)
  3. 21 Şub, 2009 1 kayıt (commit)
  4. 08 Şub, 2009 1 kayıt (commit)
  5. 03 Şub, 2009 1 kayıt (commit)
  6. 02 Şub, 2009 1 kayıt (commit)
  7. 25 Ock, 2009 2 kayıt (commit)
  8. 12 Ock, 2009 1 kayıt (commit)
  9. 26 Agu, 2008 1 kayıt (commit)
    • Antoine Pitrou's avatar
      Issue #2534: speed up isinstance() and issubclass() by 50-70%, so as to · 0668c626
      Antoine Pitrou yazdı
      match Python 2.5 speed despite the __instancecheck__ / __subclasscheck__
      mechanism. In the process, fix a bug where isinstance() and issubclass(),
      when given a tuple of classes as second argument, were looking up
      __instancecheck__ / __subclasscheck__ on the tuple rather than on each
      type object.
      
      Reviewed by Benjamin Peterson and Raymond Hettinger.
      0668c626
  10. 14 Agu, 2008 2 kayıt (commit)
  11. 12 Agu, 2008 1 kayıt (commit)
  12. 07 Tem, 2008 1 kayıt (commit)
  13. 09 Haz, 2008 1 kayıt (commit)
  14. 06 Haz, 2008 1 kayıt (commit)
  15. 26 May, 2008 1 kayıt (commit)
  16. 15 Nis, 2008 1 kayıt (commit)
  17. 19 Mar, 2008 2 kayıt (commit)
  18. 18 Mar, 2008 2 kayıt (commit)
  19. 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
  20. 15 Şub, 2008 1 kayıt (commit)
  21. 14 Şub, 2008 1 kayıt (commit)
  22. 10 Şub, 2008 1 kayıt (commit)
    • Eric Smith's avatar
      Added PyNumber_ToBase and supporting routines _PyInt_Format and · 5e527ebe
      Eric Smith yazdı
      _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
  23. 04 Şub, 2008 1 kayıt (commit)
  24. 28 Ock, 2008 1 kayıt (commit)
  25. 06 Ara, 2007 1 kayıt (commit)
    • Raymond Hettinger's avatar
      Fix Issue 1045. · 4e2f7140
      Raymond Hettinger yazdı
      Factor-out common calling code by simplifying the length_hint API.
      Speed-up the function by caching the PyObject_String for the attribute lookup.
      4e2f7140
  26. 05 Ara, 2007 1 kayıt (commit)
  27. 18 Eyl, 2007 1 kayıt (commit)
  28. 10 Eyl, 2007 1 kayıt (commit)
  29. 07 Eyl, 2007 1 kayıt (commit)
  30. 07 Şub, 2007 2 kayıt (commit)
  31. 04 Eki, 2006 1 kayıt (commit)
    • Armin Rigo's avatar
      Forward-port of r52136,52138: a review of overflow-detecting code. · 7ccbca93
      Armin Rigo yazdı
      * unified the way intobject, longobject and mystrtoul handle
        values around -sys.maxint-1.
      
      * in general, trying to entierely avoid overflows in any computation
        involving signed ints or longs is extremely involved.  Fixed a few
        simple cases where a compiler might be too clever (but that's all
        guesswork).
      
      * more overflow checks against bad data in marshal.c.
      
      * 2.5 specific: fixed a number of places that were still confusing int
        and Py_ssize_t.  Some of them could potentially have caused
        "real-world" breakage.
      
      * list.pop(x): fixing overflow issues on x was messy.  I just reverted
        to PyArg_ParseTuple("n"), which does the right thing.  (An obscure
        test was trying to give a Decimal to list.pop()... doesn't make
        sense any more IMHO)
      
      * trying to write a few tests...
      7ccbca93
  32. 15 Agu, 2006 1 kayıt (commit)
  33. 12 Agu, 2006 1 kayıt (commit)
    • Neal Norwitz's avatar
      Patch #1538606, Patch to fix __index__() clipping. · 8a87f5d3
      Neal Norwitz yazdı
      I modified this patch some by fixing style, some error checking, and adding
      XXX comments.  This patch requires review and some changes are to be expected.
      I'm checking in now to get the greatest possible review and establish a
      baseline for moving forward.  I don't want this to hold up release if possible.
      8a87f5d3
  34. 08 Agu, 2006 1 kayıt (commit)
  35. 21 Haz, 2006 1 kayıt (commit)
    • Armin Rigo's avatar
      Fix for an obscure bug introduced by revs 46806 and 46808, with a test. · 53c1692f
      Armin Rigo yazdı
      The problem of checking too eagerly for recursive calls is the
      following: if a RuntimeError is caused by recursion, and if code needs
      to normalize it immediately (as in the 2nd test), then
      PyErr_NormalizeException() needs a call to the RuntimeError class to
      instantiate it, and this hits the recursion limit again...  causing
      PyErr_NormalizeException() to never finish.
      
      Moved this particular recursion check to slot_tp_call(), which is not
      involved in instantiating built-in exceptions.
      
      Backport candidate.
      53c1692f