1. 25 Ock, 2008 1 kayıt (commit)
    • Christian Heimes's avatar
      Backport of several functions from Python 3.0 to 2.6 including… · 7f39c9fc
      Christian Heimes yazdı
      Backport of several functions from Python 3.0 to 2.6 including PyUnicode_FromString, PyUnicode_Format and PyLong_From/AsSsize_t. The functions are partly required for the backport of the bytearray type and _fileio module. They should also make it easier to port C to 3.0.
      First chapter of the Python 3.0 io framework back port: _fileio
      The next step depends on a working bytearray type which itself depends on a backport of the nwe buffer API.
      7f39c9fc
  2. 15 Şub, 2006 1 kayıt (commit)
  3. 30 Agu, 2004 1 kayıt (commit)
    • Tim Peters's avatar
      SF patch 936813: fast modular exponentiation · 47e52ee0
      Tim Peters yazdı
      This checkin is adapted from part 2 (of 3) of Trevor Perrin's patch set.
      
      BACKWARD INCOMPATIBILITY:  SHIFT must now be divisible by 5.  AFAIK,
      nobody will care.  long_pow() could be complicated to worm around that,
      if necessary.
      
      long_pow():
        - BUGFIX:  This leaked the base and power when the power was negative
          (and so the computation delegated to float pow).
        - Instead of doing right-to-left exponentiation, do left-to-right.  This
          is more efficient for small bases, which is the common case.
        - In addition, if the exponent is large (more than FIVEARY_CUTOFF
          digits), precompute [a**i % c for i in range(32)], and go left to
          right 5 bits at a time.
      l_divmod():
        - The signature changed so that callers who don't want the quotient,
          or don't want the remainder, can pass NULL in the slot they don't
          want.  This saves them from having to declare a vrbl for unwanted
          stuff, and remembering to decref it.
      long_mod(), long_div(), long_classic_div():
        - Adjust to new l_divmod() signature, and simplified as a result.
      47e52ee0
  4. 29 Agu, 2004 1 kayıt (commit)
    • Tim Peters's avatar
      SF patch 936813: fast modular exponentiation · 0973b99e
      Tim Peters yazdı
      This checkin is adapted from part 1 (of 3) of Trevor Perrin's patch set.
      
      x_mul()
        - sped a little by optimizing the C
        - sped a lot (~2X) if it's doing a square; note that long_pow() squares
          often
      k_mul()
        - more cache-friendly now if it's doing a square
      KARATSUBA_CUTOFF
        - boosted; gradeschool mult is quicker now, and it may have been too low
          for many platforms anyway
      KARATSUBA_SQUARE_CUTOFF
        - new
        - since x_mul is a lot faster at squaring now, the point at which
          Karatsuba pays for squaring is much higher than for general mult
      0973b99e
  5. 12 Agu, 2002 1 kayıt (commit)
  6. 02 Mar, 2002 1 kayıt (commit)
  7. 10 Eyl, 2001 1 kayıt (commit)
    • Tim Peters's avatar
      SF bug #460020: bug or feature: unicode() and subclasses. · 64b5ce3a
      Tim Peters yazdı
      Given an immutable type M, and an instance I of a subclass of M, the
      constructor call M(I) was just returning I as-is; but it should return a
      new instance of M.  This fixes it for M in {int, long}.  Strings, floats
      and tuples remain to be done.
      Added new macros PyInt_CheckExact and PyLong_CheckExact, to more easily
      distinguish between "is" and "is a" (i.e., only an int passes
      PyInt_CheckExact, while any sublass of int passes PyInt_Check).
      Added private API function _PyLong_Copy.
      64b5ce3a
  8. 01 Eyl, 2000 1 kayıt (commit)
  9. 16 Tem, 2000 1 kayıt (commit)
    • Thomas Wouters's avatar
      Spelling fixes supplied by Rob W. W. Hooft. All these are fixes in either · 7e474022
      Thomas Wouters yazdı
      comments, docstrings or error messages. I fixed two minor things in
      test_winreg.py ("didn't" -> "Didn't" and "Didnt" -> "Didn't").
      
      There is a minor style issue involved: Guido seems to have preferred English
      grammar (behaviour, honour) in a couple places. This patch changes that to
      American, which is the more prominent style in the source. I prefer English
      myself, so if English is preferred, I'd be happy to supply a patch myself ;)
      7e474022
  10. 08 Tem, 2000 1 kayıt (commit)
    • Tim Peters's avatar
      Cray J90 fixes for long ints. · 7d3a511a
      Tim Peters yazdı
      This was a convenient excuse to create the pyport.h file recently
      discussed!
      Please use new Py_ARITHMETIC_RIGHT_SHIFT when right-shifting a
      signed int and you *need* sign-extension.  This is #define'd in
      pyport.h, keying off new config symbol SIGNED_RIGHT_SHIFT_ZERO_FILLS.
      If you're running on a platform that needs that symbol #define'd,
      the std tests never would have worked for you (in particular,
      at least test_long would have failed).
      The autoconfig stuff got added to Python after my Unix days, so
      I don't know how that works.  Would someone please look into doing
      & testing an auto-config of the SIGNED_RIGHT_SHIFT_ZERO_FILLS
      symbol?  It needs to be defined if & only if, e.g., (-1) >> 3 is
      not -1.
      7d3a511a
  11. 07 Tem, 2000 1 kayıt (commit)
  12. 30 Haz, 2000 2 kayıt (commit)
  13. 04 Ara, 1998 1 kayıt (commit)
  14. 25 Eki, 1996 1 kayıt (commit)
  15. 10 Şub, 1995 1 kayıt (commit)
  16. 12 Ock, 1995 1 kayıt (commit)
  17. 04 Ock, 1995 1 kayıt (commit)
    • Guido van Rossum's avatar
      Added 1995 copyright. · 5799b520
      Guido van Rossum yazdı
      object.h: made sizes and refcnts signed ints.
      stringobject.h: make getstrsize() signed int.
      methodobject.h: add METH_VARARGS and METH_FREENAME flag bit definitions.
      5799b520
  18. 01 Agu, 1994 1 kayıt (commit)
  19. 28 Tem, 1993 1 kayıt (commit)
    • Guido van Rossum's avatar
      * Added support for X11 modules. · a3309960
      Guido van Rossum yazdı
      * Makefile: change location of FORMS library.
      * posixmodule.c: turn #if 0 into #ifdef MSDOS (stuff in unistd.h or not)
      * Almost all .h files: added CPP magic to avoid duplicate inclusions and
        to support inclusion from C++.
      a3309960
  20. 29 Mar, 1993 1 kayıt (commit)
    • Guido van Rossum's avatar
      * Changed all copyright messages to include 1993. · 9bfef44d
      Guido van Rossum yazdı
      * Stubs for faster implementation of local variables (not yet finished)
      * Added function name to code object.  Print it for code and function
        objects.  THIS MAKES THE .PYC FILE FORMAT INCOMPATIBLE (the version
        number has changed accordingly)
      * Print address of self for built-in methods
      * New internal functions getattro and setattro (getattr/setattr with
        string object arg)
      * Replaced "dictobject" with more powerful "mappingobject"
      * New per-type functio tp_hash to implement arbitrary object hashing,
        and hashobject() to interface to it
      * Added built-in functions hash(v) and hasattr(v, 'name')
      * classobject: made some functions static that accidentally weren't;
        added __hash__ special instance method to implement hash()
      * Added proper comparison for built-in methods and functions
      9bfef44d
  21. 05 Nis, 1992 1 kayıt (commit)
  22. 19 Ock, 1992 1 kayıt (commit)
  23. 14 May, 1991 1 kayıt (commit)
  24. 05 May, 1991 1 kayıt (commit)