Commit Graph

3025 Commits

Author SHA1 Message Date
Eric Smith
2d8c7766ff Merged revisions 69808 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

................
  r69808 | eric.smith | 2009-02-20 09:25:03 -0500 (Fri, 20 Feb 2009) | 9 lines

  Merged revisions 69806 via svnmerge from
  svn+ssh://pythondev@svn.python.org/python/trunk

  ........
    r69806 | eric.smith | 2009-02-20 09:02:36 -0500 (Fri, 20 Feb 2009) | 1 line

    Issue #5247: Improve error message when unknown format codes are used when using str.format() with str, int, and float arguments.
  ........
................
2009-02-20 14:30:15 +00:00
Benjamin Peterson
9753b483e8 Merged revisions 69754,69794 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

................
  r69754 | benjamin.peterson | 2009-02-18 22:22:03 -0600 (Wed, 18 Feb 2009) | 54 lines

  Merged revisions 69576,69579-69580,69589,69619-69620,69633,69703-69704,69728-69730 via svnmerge from
  svn+ssh://pythondev@svn.python.org/python/trunk

  ........
    r69576 | georg.brandl | 2009-02-13 04:56:50 -0600 (Fri, 13 Feb 2009) | 1 line

    #1661108: note that urlsafe encoded string can contain "=".
  ........
    r69579 | georg.brandl | 2009-02-13 05:06:59 -0600 (Fri, 13 Feb 2009) | 2 lines

    Fix warnings GCC emits where the argument of PyErr_Format is a single variable.
  ........
    r69580 | georg.brandl | 2009-02-13 05:10:04 -0600 (Fri, 13 Feb 2009) | 2 lines

    Fix warnings GCC emits where the argument of PyErr_Format is a single variable.
  ........
    r69589 | martin.v.loewis | 2009-02-13 14:11:34 -0600 (Fri, 13 Feb 2009) | 2 lines

    Move amd64 properties further to the top, so that they override
    the linker options correctly.
  ........
    r69619 | benjamin.peterson | 2009-02-14 11:00:51 -0600 (Sat, 14 Feb 2009) | 1 line

    this needn't be a shebang line
  ........
    r69620 | georg.brandl | 2009-02-14 11:01:36 -0600 (Sat, 14 Feb 2009) | 1 line

    #5179: don't leak PIPE fds when child execution fails.
  ........
    r69633 | hirokazu.yamamoto | 2009-02-15 03:19:48 -0600 (Sun, 15 Feb 2009) | 1 line

    Fixed typo.
  ........
    r69703 | raymond.hettinger | 2009-02-16 16:42:54 -0600 (Mon, 16 Feb 2009) | 3 lines

    Issue 5229: Documentation for super() neglects to say what super() actually does
  ........
    r69704 | raymond.hettinger | 2009-02-16 17:00:25 -0600 (Mon, 16 Feb 2009) | 1 line

    Add explanation for super(type1, type2).
  ........
    r69728 | georg.brandl | 2009-02-17 18:22:55 -0600 (Tue, 17 Feb 2009) | 2 lines

    #5297: fix example.
  ........
    r69729 | georg.brandl | 2009-02-17 18:25:13 -0600 (Tue, 17 Feb 2009) | 2 lines

    #5296: sequence -> iterable.
  ........
    r69730 | georg.brandl | 2009-02-17 18:31:36 -0600 (Tue, 17 Feb 2009) | 2 lines

    #5268: mention VMSError.
  ........
................
  r69794 | benjamin.peterson | 2009-02-19 21:19:25 -0600 (Thu, 19 Feb 2009) | 1 line

  fix None errno #5312
................
2009-02-20 03:32:23 +00:00
Benjamin Peterson
e7d30a2886 Merged revisions 69451 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r69451 | benjamin.peterson | 2009-02-08 15:07:20 -0600 (Sun, 08 Feb 2009) | 1 line

  fix len() when __len__() returns a non number type #5137
........
2009-02-08 21:16:01 +00:00
Mark Dickinson
f593d9cc82 Merged revisions 69440 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

................
  r69440 | mark.dickinson | 2009-02-08 15:09:21 +0000 (Sun, 08 Feb 2009) | 17 lines

  Merged revisions 69436 via svnmerge from
  svn+ssh://pythondev@svn.python.org/python/trunk

  ........
    r69436 | mark.dickinson | 2009-02-08 14:42:28 +0000 (Sun, 08 Feb 2009) | 10 lines

    Issue #789290: make sure that hash(2**63) == hash(2.**63) on 64-bit
    platforms.  The previous code was fragile, depending on the twin
    accidents that:

      (1) in C, casting the double value 2.**63 to long returns the integer
          value -2**63, and
      (2) in Python, hash(-2**63) == hash(2**63).

    There's already a test for this in test_hash.
  ........
................
2009-02-08 15:11:29 +00:00
Benjamin Peterson
167b85c710 Merged revisions 69438 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r69438 | benjamin.peterson | 2009-02-08 09:00:52 -0600 (Sun, 08 Feb 2009) | 1 line

  remove memoryview.__str__ #5182
........
2009-02-08 15:07:39 +00:00
Mark Dickinson
dc7e8d73ae Merged revisions 69431 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r69431 | mark.dickinson | 2009-02-08 11:02:10 +0000 (Sun, 08 Feb 2009) | 4 lines

  Issue #1717: add a DeprecationWarning in 3.x on type initialization
  for types that implement tp_reserved (formerly tp_compare) but
  not tp_richcompare.
........
2009-02-08 11:05:01 +00:00
Raymond Hettinger
36f59fc67b Validate that __length_hint__ returns a usable result. 2009-02-03 02:15:22 +00:00
Raymond Hettinger
9c251e7094 Issue 1242657: list(obj) can swallow KeyboardInterrupt. 2009-02-02 23:42:36 +00:00
Mark Dickinson
d925ef83bc Merged revisions 69214 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r69214 | mark.dickinson | 2009-02-02 20:36:42 +0000 (Mon, 02 Feb 2009) | 4 lines

  Issue #1717: rename tp_compare to tp_reserved.  I'll change the
  type of tp_compare in a separate commit, for ease of reversion
  should things go wrong.
........
2009-02-02 20:41:29 +00:00
Mark Dickinson
c2c707cb70 Merged revisions 69192 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r69192 | mark.dickinson | 2009-02-01 20:36:08 +0000 (Sun, 01 Feb 2009) | 2 lines

  Remove exception for non-NULL tp_compare that was introduced in r69188.
........
2009-02-01 20:37:23 +00:00
Mark Dickinson
a6243a0a47 Merged revisions 69188 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r69188 | mark.dickinson | 2009-02-01 13:59:22 +0000 (Sun, 01 Feb 2009) | 6 lines

  Issue #1717, continued:  remove PyObject_Compare and Py_CmpToRich declarations
  from object.h; don't inherit tp_compare slot on subclasses; and raise TypeError
  when initializing a type that has a nonzero tp_compare slot.  Fix up
  comparison-related comments in object.c and code.h.
........
2009-02-01 14:09:04 +00:00
Mark Dickinson
8bd5f8359f Merged revisions 69184 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r69184 | mark.dickinson | 2009-02-01 12:13:56 +0000 (Sun, 01 Feb 2009) | 3 lines

  Issue #1717:  remove the cmp builtin function, the C-API functions
  PyObject_Cmp, PyObject_Compare, and various support functions.
........
2009-02-01 12:31:56 +00:00
Mark Dickinson
9de2de59f0 Merged revisions 69181 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r69181 | mark.dickinson | 2009-02-01 10:28:51 +0000 (Sun, 01 Feb 2009) | 3 lines

  Issue #1717, stage 2: remove uses of tp_compare in Modules and most
  Objects.
........
2009-02-01 10:41:18 +00:00
Benjamin Peterson
ddb181b238 fixup indentation hopefully for the last time 2009-01-31 22:31:17 +00:00
Benjamin Peterson
014b3aee18 replace the evil tabs of unicodeobject.c with beloved spaces 2009-01-31 16:40:42 +00:00
Mark Dickinson
b9a58f65a0 Merged revisions 69068 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r69068 | mark.dickinson | 2009-01-28 21:25:58 +0000 (Wed, 28 Jan 2009) | 3 lines

  Issue #4707: round(x, n) now returns an integer when x is an integer.
  Previously it returned a float.
........
2009-01-28 21:41:53 +00:00
Mark Dickinson
b095706c62 Merged revisions 68980 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

................
  r68980 | mark.dickinson | 2009-01-26 21:56:07 +0000 (Mon, 26 Jan 2009) | 14 lines

  Merged revisions 68974-68975 via svnmerge from
  svn+ssh://pythondev@svn.python.org/python/trunk

  ........
    r68974 | mark.dickinson | 2009-01-26 21:36:30 +0000 (Mon, 26 Jan 2009) | 4 lines

    Fix undefined behaviour (left shift of negative value) in long_hash.  Also,
    rewrap a line of length > 79, and update comments.
  ........
    r68975 | mark.dickinson | 2009-01-26 21:40:08 +0000 (Mon, 26 Jan 2009) | 2 lines

    Fix comment.
  ........
................
2009-01-26 22:05:51 +00:00
Mark Dickinson
e31cb0fd16 Merged revisions 68949 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

................
  r68949 | mark.dickinson | 2009-01-25 22:25:06 +0000 (Sun, 25 Jan 2009) | 10 lines

  Merged revisions 68947 via svnmerge from
  svn+ssh://pythondev@svn.python.org/python/trunk

  ........
    r68947 | mark.dickinson | 2009-01-25 22:12:31 +0000 (Sun, 25 Jan 2009) | 3 lines

    No need for carry to be type twodigits in _PyLong_AsByteArray; digit is large enough.
    This change should silence a compiler warning on Windows.
  ........
................
2009-01-25 22:26:28 +00:00
Mark Dickinson
1385fb3285 Merged revisions 68889 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r68889 | mark.dickinson | 2009-01-24 15:02:35 +0000 (Sat, 24 Jan 2009) | 9 lines

  Some minor cleanups in PyLong_FromLong:
   - fast path wasn't being properly taken for negative ints;
     thanks Victor Stinner for pointing this out.
   - use Py_SAFE_DOWNCAST instead of direct casting to digit
     (it's safer, especially if we ever consider moving to 30-bit
     digits)
   - cleaner way to write negation
........
2009-01-24 17:16:17 +00:00
Mark Dickinson
52245fb5b8 Merged revisions 68895 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

................
  r68895 | mark.dickinson | 2009-01-24 15:56:57 +0000 (Sat, 24 Jan 2009) | 13 lines

  Merged revisions 68890 via svnmerge from
  svn+ssh://pythondev@svn.python.org/python/trunk

  ........
    r68890 | mark.dickinson | 2009-01-24 15:27:44 +0000 (Sat, 24 Jan 2009) | 6 lines

    Issue #4393: fix 3 classes of potential portability problems in longobject.c:
     - fix some places where counters into ob_digit were declared as
       int instead of Py_ssize_t
     - add (twodigit) casts where necessary
     - fix code in _PyLong_AsByteArray that uses << on negative values
  ........
................
2009-01-24 15:59:38 +00:00
Mark Dickinson
053ce7e51d Merged revisions 68814-68815 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r68814 | mark.dickinson | 2009-01-20 20:43:58 +0000 (Tue, 20 Jan 2009) | 5 lines

  Issue #4842, patch 1/2: fix pickle in Python 3.x so that pickling with the
  'L' opcode always appends an 'L' on output, just as 2.x does.  When
  unpickling, remove the trailing 'L' (if present) before passing the
  result to PyLong_FromString.
........
  r68815 | mark.dickinson | 2009-01-20 20:45:53 +0000 (Tue, 20 Jan 2009) | 2 lines

  Issue 4842, patch 2/2:  int('3L') should be invalid in Python 3.x.
........
2009-01-20 21:20:01 +00:00
Benjamin Peterson
dd08d4a113 Merged revisions 68746 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

................
  r68746 | benjamin.peterson | 2009-01-18 16:27:04 -0600 (Sun, 18 Jan 2009) | 55 lines

  Merged revisions 68633,68648,68667,68706,68718,68720-68721,68724-68727,68739 via svnmerge from
  svn+ssh://pythondev@svn.python.org/python/trunk

  ........
    r68633 | thomas.heller | 2009-01-16 12:53:44 -0600 (Fri, 16 Jan 2009) | 3 lines

    Change an example in the docs to avoid a mistake when the code is copy
    pasted and changed afterwards.
  ........
    r68648 | benjamin.peterson | 2009-01-16 22:28:57 -0600 (Fri, 16 Jan 2009) | 1 line

    use enumerate
  ........
    r68667 | amaury.forgeotdarc | 2009-01-17 14:18:59 -0600 (Sat, 17 Jan 2009) | 3 lines

    #4077: No need to append \n when calling Py_FatalError
    + fix a declaration to make it match the one in pythonrun.h
  ........
    r68706 | benjamin.peterson | 2009-01-17 19:28:46 -0600 (Sat, 17 Jan 2009) | 1 line

    fix grammar
  ........
    r68718 | georg.brandl | 2009-01-18 04:42:35 -0600 (Sun, 18 Jan 2009) | 1 line

    #4976: union() and intersection() take multiple args, but talk about "the other".
  ........
    r68720 | georg.brandl | 2009-01-18 04:45:22 -0600 (Sun, 18 Jan 2009) | 1 line

    #4974: fix redundant mention of lists and tuples.
  ........
    r68721 | georg.brandl | 2009-01-18 04:48:16 -0600 (Sun, 18 Jan 2009) | 1 line

    #4914: trunc is in math.
  ........
    r68724 | georg.brandl | 2009-01-18 07:24:10 -0600 (Sun, 18 Jan 2009) | 1 line

    #4979: correct result range for some random functions.
  ........
    r68725 | georg.brandl | 2009-01-18 07:47:26 -0600 (Sun, 18 Jan 2009) | 1 line

    #4857: fix augmented assignment target spec.
  ........
    r68726 | georg.brandl | 2009-01-18 08:41:52 -0600 (Sun, 18 Jan 2009) | 1 line

    #4923: clarify what was added.
  ........
    r68727 | georg.brandl | 2009-01-18 12:25:30 -0600 (Sun, 18 Jan 2009) | 1 line

    #4986: augassigns are not expressions.
  ........
    r68739 | benjamin.peterson | 2009-01-18 15:11:38 -0600 (Sun, 18 Jan 2009) | 1 line

    fix test that wasn't working as expected #4990
  ........
................
2009-01-18 22:40:43 +00:00
Mark Dickinson
a3c4398af2 Merged revisions 68675 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r68675 | mark.dickinson | 2009-01-17 21:57:11 +0000 (Sat, 17 Jan 2009) | 2 lines

  Replace PyNumber_Int with PyNumber_Long.
........
2009-01-18 11:01:50 +00:00
Antoine Pitrou
f0b20a7ffc Merged revisions 68669 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r68669 | antoine.pitrou | 2009-01-17 22:06:43 +0100 (sam., 17 janv. 2009) | 3 lines

  Issue #4838: When a module is deallocated, free the memory backing the optional module state data.
........
2009-01-17 21:40:04 +00:00
Mark Dickinson
d9a1c5611b Merged revisions 68650-68653 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r68650 | mark.dickinson | 2009-01-17 09:45:37 +0000 (Sat, 17 Jan 2009) | 2 lines

  Remove a couple of references to long in the c-api docs
........
  r68651 | mark.dickinson | 2009-01-17 10:04:45 +0000 (Sat, 17 Jan 2009) | 2 lines

  Issue #4910, patch 3/3:  rename nb_long to nb_reserved
........
  r68652 | mark.dickinson | 2009-01-17 10:21:23 +0000 (Sat, 17 Jan 2009) | 2 lines

  Fix a few more references to long integers in the docs.
........
  r68653 | mark.dickinson | 2009-01-17 10:48:28 +0000 (Sat, 17 Jan 2009) | 2 lines

  Remove attempted long->int conversions in py3k version of float.as_integer_ratio.
........
2009-01-17 18:00:58 +00:00