Commit graph

47866 commits

Author SHA1 Message Date
Nick Coghlan
234515afe5 Issue 10586: change the new functools.lru_cache implementation to expose the maximum and current cache sizes through the public statistics API. This API is now a single function that returns a named tuple. 2010-11-30 06:19:46 +00:00
Raymond Hettinger
101f09e72f Issue #10323: Predictable final state for slice(). 2010-11-30 03:09:05 +00:00
Alexander Belopolsky
ff27ee0b40 Issue #10572: Moved json tests to Lib/test/json_tests.
Approved by Raymond Hettinger.
2010-11-30 03:03:30 +00:00
Raymond Hettinger
69b34bfe9c Issue #10323: Predictable final state for slice(). 2010-11-30 02:49:29 +00:00
Alexander Belopolsky
fdb32c15e4 Merged revisions 86857 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r86857 | raymond.hettinger | 2010-11-28 22:56:12 -0500 (Sun, 28 Nov 2010) | 1 line

  Issue #10565:  Iterator ABC should require both __next__ and __iter__.
........
2010-11-30 01:01:02 +00:00
Georg Brandl
ac9a2bb067 Use booleans where applicable. 2010-11-29 20:19:15 +00:00
Georg Brandl
2660747a0b Code style cleanup in bdb. 2010-11-29 20:12:24 +00:00
Georg Brandl
8175daec10 Fix heading style inconsistencies. 2010-11-29 14:53:15 +00:00
Georg Brandl
51be98a920 Fix indentation bug. 2010-11-29 14:50:54 +00:00
Senthil Kumaran
34cc202559 Blocked revisions 86864 via svnmerge
........
  r86864 | senthil.kumaran | 2010-11-29 20:42:29 +0800 (Mon, 29 Nov 2010) | 3 lines

  Remove the comment used while testing.
........
2010-11-29 12:48:01 +00:00
Senthil Kumaran
3d0f388a6b Remove the comment used while testing. 2010-11-29 12:42:29 +00:00
Senthil Kumaran
5170c81662 Merged revisions 86861 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r86861 | senthil.kumaran | 2010-11-29 19:54:17 +0800 (Mon, 29 Nov 2010) | 5 lines

  Fix #10561 - Fix pdb behavior. Delete the breakpoints by breakpoint number.
  Handle multiple breakpoints at same line. Update docs/test.
  Patch by Xavier de Gaye.
........
2010-11-29 12:27:45 +00:00
Senthil Kumaran
6f1070485f Fix #10561 - Fix pdb behavior. Delete the breakpoints by breakpoint number.
Handle multiple breakpoints at same line. Update docs/test.
Patch by Xavier de Gaye.
2010-11-29 11:54:17 +00:00
Ezio Melotti
a88d2776ef Blocked revisions 86845,86855-86856 via svnmerge
........
  r86845 | ezio.melotti | 2010-11-28 06:18:54 +0200 (Sun, 28 Nov 2010) | 1 line

  Add callable() to the built-in functions table.
........
  r86855 | raymond.hettinger | 2010-11-29 03:38:25 +0200 (Mon, 29 Nov 2010) | 1 line

  Do not add an obsolete unittest name to Py3.2.
........
  r86856 | ezio.melotti | 2010-11-29 04:02:10 +0200 (Mon, 29 Nov 2010) | 1 line

  Use assertCountEqual instead of assertItemsEqual
........
2010-11-29 09:54:22 +00:00
Raymond Hettinger
ead22227cc Issue #10565: Iterator ABC should require both __next__ and __iter__. 2010-11-29 03:56:12 +00:00
Ezio Melotti
263cbdfdfb Use assertCountEqual instead of assertItemsEqual 2010-11-29 02:02:10 +00:00
Raymond Hettinger
40b8cf528f Do not add an obsolete unittest name to Py3.2. 2010-11-29 01:38:25 +00:00
Brian Curtin
fc889c48ed Fix for #8879.
Amaury noticed that this was originally written in a way that would fail on
names that can't be encoded with the mbcs codec. Restructured the function
to work with wide names first then narrow names second, to fall in line
with the way other functions are written in posixmodule.c.
2010-11-28 23:59:46 +00:00
Benjamin Peterson
68eb3718d9 point in the general direction of 3.1.4 2010-11-28 04:50:12 +00:00
Ezio Melotti
1de911592e Add callable() to the built-in functions table. 2010-11-28 04:18:54 +00:00
Benjamin Peterson
f6861ae12a there's now a setup.py switch for this 2010-11-28 02:51:28 +00:00
Stefan Krah
2a7feee76d Windows: fix leak in posix_listdir. 2010-11-27 22:06:49 +00:00
Antoine Pitrou
e71362d3de Issue #10518: Bring back the callable() builtin.
Approved by Guido (BDFL) and Georg (RM).
2010-11-27 22:00:11 +00:00
Antoine Pitrou
f66a1dd12b Merged revisions 86838 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r86838 | antoine.pitrou | 2010-11-27 21:40:43 +0100 (sam., 27 nov. 2010) | 3 lines

  Make doc for PyErr_Format() up to date.
........
2010-11-27 21:01:19 +00:00
Terry Reedy
dc9b17d922 Add version-added note twice for new difflib SequenceMatcher autojunk parameter. 2010-11-27 20:52:14 +00:00
Antoine Pitrou
a66e029a9d Make doc for PyErr_Format() up to date. 2010-11-27 20:40:43 +00:00
Barry Warsaw
34520cdcf4 Roumen Petrov's fix for when all paths are absolute. (Issue 10520) 2010-11-27 20:03:03 +00:00
Benjamin Peterson
115b99c222 remove :c:data: which snuck in 2010-11-27 15:39:31 +00:00
Benjamin Peterson
565364670a breathe existence into 3.1.3 2010-11-27 14:47:33 +00:00
Benjamin Peterson
5757429130 3.1.3 final version bump 2010-11-27 14:46:13 +00:00
Stefan Krah
55d86e6c76 Blocked revisions 86829 via svnmerge
........
  r86829 | stefan.krah | 2010-11-27 12:44:18 +0100 (Sat, 27 Nov 2010) | 1 line

  Fix additional leaks.
........
2010-11-27 11:48:09 +00:00
Stefan Krah
30b341f1a5 Fix additional leaks. 2010-11-27 11:44:18 +00:00
Raymond Hettinger
6e165b30de Issue 10242: unittest.assertItemsEqual makes too many assumptions. 2010-11-27 09:31:37 +00:00
Raymond Hettinger
db213a297d Replace _nbits() with int.bit_length(). 2010-11-27 08:09:40 +00:00
Éric Araujo
76338ec37d Rewrap long lines + minor edits 2010-11-26 23:46:18 +00:00
Éric Araujo
8acb67c059 Use link-generating markup (see #9312) 2010-11-26 23:31:07 +00:00
Hirokazu Yamamoto
d160a2ff9d Blocked revisions 86168,86211,86300 via svnmerge
........
  r86168 | hirokazu.yamamoto | 2010-11-05 00:21:59 +0900 (金, 05 11 2010) | 1 line

  Updated PC/VS8.0. (mainly to follow r86137: use temporary dir in make_buildinfo.c)
........
  r86211 | hirokazu.yamamoto | 2010-11-06 02:24:13 +0900 (土, 06 11 2010) | 1 line

  Fixed socket_gethostname() on windows.
........
  r86300 | hirokazu.yamamoto | 2010-11-07 23:29:26 +0900 (日, 07 11 2010) | 1 line

  Issue #6317: Now winsound.PlaySound only accepts unicode with MvL's approval.
........
2010-11-26 19:51:46 +00:00
Alexander Belopolsky
1f75f5d506 Fixed deprecation warnings. 2010-11-26 18:51:39 +00:00
Georg Brandl
90d206ba4c Blocked revisions 86794,86797,86800 via svnmerge
........
  r86794 | georg.brandl | 2010-11-26 12:50:13 +0100 (Fr, 26 Nov 2010) | 1 line

  #10526: fix typo.
........
  r86797 | georg.brandl | 2010-11-26 13:05:27 +0100 (Fr, 26 Nov 2010) | 1 line

  Modernize code in effective().
........
  r86800 | georg.brandl | 2010-11-26 13:10:06 +0100 (Fr, 26 Nov 2010) | 1 line

  Typo fix.
........
2010-11-26 18:30:07 +00:00
Georg Brandl
ae26cce9a3 Recorded merge of revisions 86795,86798-86799,86801 via svnmerge from
svn+ssh://svn.python.org/python/branches/py3k

........
  r86795 | georg.brandl | 2010-11-26 12:55:48 +0100 (Fr, 26 Nov 2010) | 1 line

  Use PyLong_FromLong where appropriate.
........
  r86798 | georg.brandl | 2010-11-26 13:05:48 +0100 (Fr, 26 Nov 2010) | 1 line

  #10420: fix docs of bdb.effective().
........
  r86799 | georg.brandl | 2010-11-26 13:08:19 +0100 (Fr, 26 Nov 2010) | 1 line

  Remove parenthetical remark that is confusing now that the module is not named "__builtin__" anymore.
........
  r86801 | georg.brandl | 2010-11-26 13:12:14 +0100 (Fr, 26 Nov 2010) | 1 line

  Better example for os.system(): do not change the system time.
........
2010-11-26 18:29:10 +00:00
Stefan Krah
6773331104 Merged revisions 86808 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r86808 | stefan.krah | 2010-11-26 17:16:47 +0100 (Fri, 26 Nov 2010) | 1 line

  Further indentation cleanup.
........
2010-11-26 17:04:40 +00:00
Stefan Krah
0e803b3322 Further indentation cleanup. 2010-11-26 16:16:47 +00:00
Stefan Krah
40b61237bd Merged revisions 86804 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r86804 | stefan.krah | 2010-11-26 13:58:05 +0100 (Fri, 26 Nov 2010) | 1 line

  Issue #10383: Fix two leaks.
........
2010-11-26 15:08:59 +00:00
Stefan Krah
99439266a3 Issue #10383: Fix two leaks. 2010-11-26 12:58:05 +00:00
Georg Brandl
fe12390b45 Better example for os.system(): do not change the system time. 2010-11-26 12:12:14 +00:00
Georg Brandl
326c57d1d9 Typo fix. 2010-11-26 12:10:06 +00:00
Georg Brandl
62f52c484d Remove parenthetical remark that is confusing now that the module is not named "__builtin__" anymore. 2010-11-26 12:08:19 +00:00
Georg Brandl
f51a6c7d74 #10420: fix docs of bdb.effective(). 2010-11-26 12:05:48 +00:00
Georg Brandl
9aed6cca89 Modernize code in effective(). 2010-11-26 12:05:27 +00:00
Matthias Klose
55aa2f39a3 Merged revisions 85645 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r85645 | matthias.klose | 2010-10-17 15:22:33 +0200 (Sun, 17 Oct 2010) | 2 lines

  - Accept Oracle Berkeley DB 5.0 and 5.1 as backend for the dbm extension.
........
2010-11-26 11:56:26 +00:00