1. 12 Agu, 2002 1 kayıt (commit)
  2. 12 Tem, 2002 1 kayıt (commit)
  3. 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
  4. 04 Eyl, 2001 1 kayıt (commit)
    • Tim Peters's avatar
      Introduce new private API function _PyLong_AsScaledDouble. Not used yet, · a1c1b0f4
      Tim Peters yazdı
      but will be the foundation for Good Things:
      + Speed PyLong_AsDouble.
      + Give PyLong_AsDouble the ability to detect overflow.
      + Make true division of long/long nearly as accurate as possible (no
        spurious infinities or NaNs).
      + Return non-insane results from math.log and math.log10 when passing a
        long that can't be approximated by a double better than HUGE_VAL.
      a1c1b0f4
  5. 29 Agu, 2001 1 kayıt (commit)
  6. 17 Agu, 2001 1 kayıt (commit)
    • Martin v. Löwis's avatar
      Patch #445762: Support --disable-unicode · 339d0f72
      Martin v. Löwis yazdı
      - Do not compile unicodeobject, unicodectype, and unicodedata if Unicode is disabled
      - check for Py_USING_UNICODE in all places that use Unicode functions
      - disables unicode literals, and the builtin functions
      - add the types.StringTypes list
      - remove Unicode literals from most tests.
      339d0f72
  7. 11 Haz, 2001 1 kayıt (commit)
    • Tim Peters's avatar
      Two new private longobject API functions, · 2a9b3673
      Tim Peters yazdı
          _PyLong_FromByteArray
          _PyLong_AsByteArray
      Untested and probably buggy -- they compile OK, but nothing calls them
      yet.  Will soon be called by the struct module, to implement x-platform
      'q' and 'Q'.
      If other people have uses for them, we could move them into the public API.
      See longobject.h for usage details.
      2a9b3673
  8. 26 Eyl, 2000 1 kayıt (commit)
  9. 01 Eyl, 2000 1 kayıt (commit)
  10. 18 Agu, 2000 1 kayıt (commit)
  11. 07 Tem, 2000 1 kayıt (commit)
  12. 30 Haz, 2000 2 kayıt (commit)
  13. 05 Nis, 2000 1 kayıt (commit)
    • Guido van Rossum's avatar
      Marc-Andre's third try at this bulk patch seems to work (except that · 9e896b37
      Guido van Rossum yazdı
      his copy of test_contains.py seems to be broken -- the lines he
      deleted were already absent).  Checkin messages:
      
      
      New Unicode support for int(), float(), complex() and long().
      
      - new APIs PyInt_FromUnicode() and PyLong_FromUnicode()
      - added support for Unicode to PyFloat_FromString()
      - new encoding API PyUnicode_EncodeDecimal() which converts
        Unicode to a decimal char* string (used in the above new
        APIs)
      - shortcuts for calls like int(<int object>) and float(<float obj>)
      - tests for all of the above
      
      Unicode compares and contains checks:
      - comparing Unicode and non-string types now works; TypeErrors
        are masked, all other errors such as ValueError during
        Unicode coercion are passed through (note that PyUnicode_Compare
        does not implement the masking -- PyObject_Compare does this)
      - contains now works for non-string types too; TypeErrors are
        masked and 0 returned; all other errors are passed through
      
      Better testing support for the standard codecs.
      
      Misc minor enhancements, such as an alias dbcs for the mbcs codec.
      
      Changes:
      - PyLong_FromString() now applies the same error checks as
        does PyInt_FromString(): trailing garbage is reported
        as error and not longer silently ignored. The only characters
        which may be trailing the digits are 'L' and 'l' -- these
        are still silently ignored.
      - string.ato?() now directly interface to int(), long() and
        float(). The error strings are now a little different, but
        the type still remains the same. These functions are now
        ready to get declared obsolete ;-)
      - PyNumber_Int() now also does a check for embedded NULL chars
        in the input string; PyNumber_Long() already did this (and
        still does)
      
      Followed by:
      
      Looks like I've gone a step too far there... (and test_contains.py
      seem to have a bug too).
      
      I've changed back to reporting all errors in PyUnicode_Contains()
      and added a few more test cases to test_contains.py (plus corrected
      the join() NameError).
      9e896b37
  14. 06 Ock, 1999 1 kayıt (commit)
  15. 04 Ara, 1998 1 kayıt (commit)
  16. 18 Eyl, 1998 1 kayıt (commit)
  17. 25 Agu, 1998 1 kayıt (commit)
  18. 04 Agu, 1998 1 kayıt (commit)
  19. 03 Ock, 1997 1 kayıt (commit)
  20. 25 Eki, 1996 1 kayıt (commit)
  21. 27 Şub, 1995 1 kayıt (commit)
  22. 17 Ock, 1995 1 kayıt (commit)
  23. 12 Ock, 1995 1 kayıt (commit)
  24. 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
  25. 18 Agu, 1994 1 kayıt (commit)
  26. 01 Agu, 1994 1 kayıt (commit)
  27. 01 Kas, 1993 1 kayıt (commit)
  28. 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
  29. 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
  30. 05 Nis, 1992 1 kayıt (commit)
  31. 19 Ock, 1992 1 kayıt (commit)
  32. 03 Haz, 1991 1 kayıt (commit)
  33. 05 May, 1991 1 kayıt (commit)
  34. 04 Nis, 1991 1 kayıt (commit)
  35. 19 Şub, 1991 1 kayıt (commit)
  36. 20 Ara, 1990 1 kayıt (commit)
  37. 14 Eki, 1990 1 kayıt (commit)