Commit Graph

40160 Commits

Author SHA1 Message Date
Mark Dickinson 8504d085b7 Use size_t instead of int for a PyMem_MALLOC argument; silences a gcc 'comparison always false' warning. 2009-10-03 20:13:37 +00:00
Ezio Melotti b4d286d04e silence with (void) two warnings about computed and unused value of POP() 2009-10-03 16:14:07 +00:00
Benjamin Peterson 36e0d0efd8 isinstance(f, collections.Callable) is more correct 2009-10-03 15:13:15 +00:00
Benjamin Peterson 5850389a10 revert r75090 2009-10-03 15:06:21 +00:00
Tarek Ziadé 81c9a95751 Merged revisions 75209 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r75209 | tarek.ziade | 2009-10-03 16:52:33 +0200 (Sat, 03 Oct 2009) | 1 line

  now uses the right exception type
........
2009-10-03 14:54:15 +00:00
Mark Dickinson 36cea39b22 Merged revisions 75205 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r75205 | mark.dickinson | 2009-10-03 11:14:34 +0100 (Sat, 03 Oct 2009) | 2 lines

  Issue #7028:  Add note to hex() builtin docs pointing to float.hex().
........
2009-10-03 10:18:40 +00:00
Tarek Ziadé 7942e2e267 Blocked revisions 75196 via svnmerge
........
  r75196 | tarek.ziade | 2009-10-03 02:07:35 +0200 (Sat, 03 Oct 2009) | 1 line

  removing the last remaning apply() calls
........
2009-10-03 00:10:24 +00:00
Tarek Ziadé 05b303443b Merged revisions 75192 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r75192 | tarek.ziade | 2009-10-03 01:49:48 +0200 (Sat, 03 Oct 2009) | 1 line

  #6516 added owner/group support for tarfiles in Distutils
........
2009-10-02 23:56:02 +00:00
Mark Dickinson 574b1d6a60 More versionadded/versionchanged fixes 2009-10-01 20:20:09 +00:00
Mark Dickinson 4035aace1a Remove outdated versionchanged entry 2009-10-01 20:11:11 +00:00
Antoine Pitrou b9b0ef03e9 Blocked revisions 75171 via svnmerge
........
  r75171 | antoine.pitrou | 2009-10-01 19:08:03 +0200 (jeu., 01 oct. 2009) | 4 lines

  Sync the 2.x `io` docs with py3k, with a small note as to the distinction
  between bytes streams and text streams.
........
2009-10-01 17:09:15 +00:00
Antoine Pitrou 78ddbe69af Issue #7022: clarification of RawIOBase.read(), suggested by Pascal Chambon. 2009-10-01 16:24:45 +00:00
Mark Dickinson 56e0966afa Fix versionadded for py3k math.gamma 2009-10-01 16:13:29 +00:00
Benjamin Peterson da18125ae1 more stable url 2009-10-01 00:57:32 +00:00
Benjamin Peterson 51e491000d fix opensearch version 2009-10-01 00:10:13 +00:00
Mark Dickinson 2d53bdecd8 Merged revisions 75157 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r75157 | mark.dickinson | 2009-09-30 17:58:01 +0100 (Wed, 30 Sep 2009) | 1 line

  Fix buggy accuracy test
........
2009-09-30 17:47:54 +00:00
Mark Dickinson 2683ab04a6 Merged revisions 75141 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r75141 | mark.dickinson | 2009-09-29 20:01:06 +0100 (Tue, 29 Sep 2009) | 3 lines

  Issue #7019:  Unmarshalling of bad long data could produce unnormalized
  PyLongs.  Raise ValueError instead.
........
2009-09-29 19:21:35 +00:00
Antoine Pitrou ead1d62d32 [NOTE: the original bug doesn't exist in py3k but this adds Kirk's tests and fixes
another bug in the process]


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

........
  r75134 | antoine.pitrou | 2009-09-29 19:48:18 +0200 (mar., 29 sept. 2009) | 4 lines

  Issue #6790: Make it possible again to pass an `array.array` to
  `httplib.HTTPConnection.send`. Patch by Kirk McDonald.
........
2009-09-29 18:44:53 +00:00
R. David Murray 8da3cac4a0 Merged revisions 75111 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r75111 | r.david.murray | 2009-09-28 12:57:45 -0400 (Mon, 28 Sep 2009) | 5 lines

  Prevent test_bad_address failure when a domain in the dns search
  path implements a '*' default rule.  Also update comment with
  a more complete explanation of the difficulties inherent in
  the test.
........
2009-09-29 14:01:08 +00:00
Raymond Hettinger b8b0ba1fa0 Issue 7008: Better document str.title and show how to work around the apostrophe problem. 2009-09-29 06:22:28 +00:00
Philip Jenvey 26713cade1 Recorded merge of revisions 75123 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r75123 | philip.jenvey | 2009-09-28 21:32:44 -0700 (Mon, 28 Sep 2009) | 4 lines

  #6990: clear threading.local's key only after its thread state is removed:
  fixes local subclasses leaving old state around after a ref cycle GC which
  could be recycled by new locals
........
2009-09-29 04:57:18 +00:00
Mark Dickinson 12c4bdb0e8 Merged revisions 75117 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r75117 | mark.dickinson | 2009-09-28 19:54:55 +0100 (Mon, 28 Sep 2009) | 3 lines

  Issue #3366:  Add gamma function to math module.
  (lgamma, erf and erfc to follow).
........
2009-09-28 19:21:11 +00:00
R. David Murray 40af630672 Blocked revisions 75115 via svnmerge
........
  r75115 | r.david.murray | 2009-09-28 14:29:28 -0400 (Mon, 28 Sep 2009) | 2 lines

  Applying patches backported from 3.1, by Gregor Lingl.
........
2009-09-28 18:55:36 +00:00
Mark Dickinson 24f5785fea Merged revisions 75110 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r75110 | mark.dickinson | 2009-09-28 17:52:40 +0100 (Mon, 28 Sep 2009) | 9 lines

  Style/consistency/nano-optimization nit:  replace occurrences of
    (high_bits << PyLong_SHIFT) + low_bits with
    (high_bits << PyLong_SHIFT) | low_bits
  in Objects/longobject.c.  Motivation:
   - shouldn't unnecessarily mix bit ops with arithmetic ops (style)
   - this pattern should be spelt the same way thoughout (consistency)
   - it's very very very slightly faster: no need to worry about
     carries to the high digit (nano-optimization).
........
2009-09-28 17:54:52 +00:00
Mark Dickinson 3c976a0437 Recorded merge of revisions 75054 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r75054 | kristjan.jonsson | 2009-09-25 16:19:51 +0100 (Fri, 25 Sep 2009) | 2 lines

  http://bugs.python.org/issue6971
  Adding the SIO_KEEPALIVE_VALS command to socket.ioctl on windows
........
2009-09-28 16:07:15 +00:00
Mark Dickinson c6ccd08d61 Recorded merge of revisions 75103-75104,75106 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r75103 | kristjan.jonsson | 2009-09-28 14:08:48 +0100 (Mon, 28 Sep 2009) | 2 lines

  http://bugs.python.org/issue6836
  A memory block allocated with one API was being handed over to an object that used another API to release it.
........
  r75104 | kristjan.jonsson | 2009-09-28 14:12:38 +0100 (Mon, 28 Sep 2009) | 2 lines

  http://bugs.python.org/issue6836
  The debug memory api now keeps track of which external API (PyMem_* or PyObject_*) was used to allocate each block and treats any API violation as an error.  Added separate _PyMem_DebugMalloc functions for the Py_Mem API instead of having it use the _PyObject_DebugMalloc functions.
........
  r75106 | kristjan.jonsson | 2009-09-28 16:56:25 +0100 (Mon, 28 Sep 2009) | 2 lines

  http://bugs.python.org/issue6836
  A missing 'const' wasn't detected by Visual Studio.
........
2009-09-28 16:00:09 +00:00
Kristján Valur Jónsson 3436900a5a merging revision 75106 from trunk:
http://bugs.python.org/issue6836
A missing 'const' wasn't detected by Visual Studio.
2009-09-28 15:57:53 +00:00
Kristján Valur Jónsson ae4cfb1bb3 http://bugs.python.org/issue6836
Merging revisions 75103,75104 from trunk to py3k
2009-09-28 13:45:02 +00:00
Kristján Valur Jónsson 847ec75d3e http://bugs.python.org/issue6971
Porting revision 75054 from trunk
2009-09-27 21:10:38 +00:00
Mark Dickinson 7d3d209b54 Blocked revisions 75091 via svnmerge
........
  r75091 | mark.dickinson | 2009-09-27 17:39:28 +0100 (Sun, 27 Sep 2009) | 1 line

  Eliminate unnecessary get_wrapped_(u)long defines in struct module.
........
2009-09-27 16:41:06 +00:00
Benjamin Peterson 5770847da6 use more correct callable replacement 2009-09-27 16:32:56 +00:00
Mark Dickinson 75636af5db Blocked revisions 75084 via svnmerge
........
  r75084 | mark.dickinson | 2009-09-27 17:05:21 +0100 (Sun, 27 Sep 2009) | 3 lines

  Issue #6713:  Improve decimal int -> string conversions.  Thanks Gawain
  Bolton for the suggestion and original patches.
........
2009-09-27 16:08:13 +00:00
Benjamin Peterson defa04ec8b star_expr now always has two nodes 2009-09-27 14:08:59 +00:00
Benjamin Peterson 4905e80c3d fix an ambiguity in the grammar from the implementation of extended unpacking
(one which was strangely "resolved" by pgen)

This also kills the unused testlist1 rule and fixes parse tree validation of
extended unpacking.
2009-09-27 02:43:28 +00:00
Georg Brandl 10430ad7aa fix default value 2009-09-26 20:59:11 +00:00
Georg Brandl 9c3b7dc3c0 use new style optional args 2009-09-26 20:52:12 +00:00
Ezio Melotti a40bdda937 Merged revisions 75070 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r75070 | ezio.melotti | 2009-09-26 14:20:53 +0300 (Sat, 26 Sep 2009) | 1 line

  #7000: document "sep" in capwords. Add a few tests
........
2009-09-26 12:33:22 +00:00
Ezio Melotti 2c6a949e43 string.capwords is still around, adding back the tests 2009-09-26 12:19:30 +00:00
R. David Murray ab170681f6 Andrew just committed a patch for curses, so since he's been the
maintainer he's on the hook for it in maintainers unless he says
otherwise.
2009-09-26 02:42:26 +00:00
Ezio Melotti af30d2eeaa fix print statement 2009-09-25 21:35:24 +00:00
Benjamin Peterson 9abfc457e0 correct the fixpath.py script to work in Python 3 #6999 2009-09-25 20:56:52 +00:00
Benjamin Peterson 8fb00bef27 fix print statement 2009-09-25 20:34:04 +00:00
Ezio Melotti b297e714e2 #6998: fix missing () on a print 2009-09-25 20:14:02 +00:00
Ezio Melotti ed61093277 Merged revisions 75055 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r75055 | ezio.melotti | 2009-09-25 19:07:55 +0300 (Fri, 25 Sep 2009) | 1 line

  #6994: fix typo in enumerate docstring
........
2009-09-25 16:12:33 +00:00
Mark Dickinson 418f81d9b6 Issue #1766304: The range.__contains__ optimization should only be
applied to ints, not to instances of subclasses of int.
2009-09-24 20:04:23 +00:00
Mark Dickinson 067b38eed4 Merged revisions 75047 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r75047 | mark.dickinson | 2009-09-24 20:21:07 +0100 (Thu, 24 Sep 2009) | 3 lines

  Issue #6982:  Add generated Lib/lib2to3/*.pickle files to 'make clean' target.
  Thanks egreen.
........
2009-09-24 19:24:44 +00:00
Mark Dickinson 1f7e18cd74 Silence compiler warning 2009-09-24 18:31:17 +00:00
Ezio Melotti ec5c8b8e9b Merged revisions 75039 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r75039 | ezio.melotti | 2009-09-24 00:36:39 +0300 (Thu, 24 Sep 2009) | 1 line

  improved phrasing, markup and example
........
2009-09-23 21:42:25 +00:00
Mark Dickinson c6f23642ee Add Robert Lehmann for issue #1766304 patch 2009-09-22 21:52:03 +00:00
Mark Dickinson 3e124ae739 Issue #1766304: Optimize membership testing for ranges: 'n in range(...)'
does an O(1) check, if n is an integer.  Non-integers aren't affected.
Thanks Robert Lehmann.
2009-09-22 21:47:24 +00:00