Raymond Hettinger
482ba77245
Add itertools.accumulate().
2010-12-01 22:48:00 +00:00
Alexander Belopolsky
2f9a77a389
Reverted unintended change from r86916
2010-12-01 21:55:40 +00:00
Alexander Belopolsky
41e422a4ff
Issue #4113 : Added custom __repr__ method to functools.partial.
2010-12-01 20:05:49 +00:00
Georg Brandl
419e3de373
Fix some markup and style in the unittest docs.
2010-12-01 15:44:25 +00:00
Georg Brandl
f7f5a82b36
#10594 : fix parameter names in PyList API docs.
2010-12-01 15:36:33 +00:00
Georg Brandl
063f237812
Add missing word, and add a better reference to the actual function.
2010-12-01 15:32:43 +00:00
Raymond Hettinger
5ce0aa236f
Add recipe to itertools doc.
2010-12-01 10:49:19 +00:00
Raymond Hettinger
c79fb0e52d
Issue 10593: Adopt Nick's suggestion for an lru_cache with maxsize=None.
2010-12-01 03:45:41 +00:00
Ezio Melotti
ed3a7d2d60
#10273 : Rename assertRegexpMatches and assertRaisesRegexp to assertRegex and assertRaisesRegex.
2010-12-01 02:32:32 +00:00
Ezio Melotti
f10c400b91
Fix test failure in debug builds and add NEWS entry for r86908
2010-12-01 01:45:53 +00:00
Ezio Melotti
6090187656
#10535 : Enable silenced warnings in unittest by default
2010-12-01 00:56:10 +00:00
Raymond Hettinger
00f2f97dbd
Doc and docstring nits.
2010-12-01 00:47:56 +00:00
Brian Curtin
c0abc4e3a4
Fix #10591 . Fix test_os for refleak runs.
...
Split a common setUp/tearDown into the appropriate parts.
2010-11-30 23:46:54 +00:00
Antoine Pitrou
715f3cd10d
Issue #8685 : Speed up set difference `a - b` when source set `a` is
...
much larger than operand `b`. Patch by Andrew Bennetts.
2010-11-30 22:23:20 +00:00
Raymond Hettinger
697ce95931
Add link to specification.
2010-11-30 20:32:59 +00:00
Raymond Hettinger
cc03858d8f
Documentation nits.
2010-11-30 20:02:57 +00:00
Raymond Hettinger
7496b4171e
Add example, tighten text, and minor clean-ups.
2010-11-30 19:15:45 +00:00
Daniel Stutzbach
d01df46848
Fix typo: "ofbytes" should be "of bytes"
2010-11-30 17:49:53 +00:00
Raymond Hettinger
dcb4491b0a
Add some internal links.
2010-11-30 17:45:41 +00:00
Alexander Belopolsky
73f382de1c
Issue #9598 : untabify.py will now respect encoding cookie in the files it processes
2010-11-30 17:30:43 +00:00
Éric Araujo
ff2a4ba78c
Let’s keep “throw” for the generator method and use “raise” elsewhere.
2010-11-30 17:20:31 +00:00
Alexander Belopolsky
827fdaae30
Issue #10552 : Partially fixed a sort error in Tools/unicode/gencodec.py
2010-11-30 16:56:15 +00:00
Brian Curtin
f498b754ed
Actually fix what I attempted to fix in r86888...
2010-11-30 15:54:04 +00:00
Nick Coghlan
9fc443cf59
Issue 9873: the URL parsing functions now accept ASCII encoded byte sequences in addition to character strings
2010-11-30 15:48:08 +00:00
Brian Curtin
43f0c27be7
Try to fix failures on platforms that can't encode the test characters.
...
Skip the test if encoding fails.
2010-11-30 15:40:04 +00:00
Georg Brandl
5aa580f279
Fix typo.
2010-11-30 14:57:54 +00:00
Georg Brandl
e5b99f0fb3
Remove redundant includes of headers that are already included by Python.h.
2010-11-30 09:41:01 +00:00
Georg Brandl
71c23d4473
Include structseq.h in Python.h, and remove now-redundant includes in individual sources.
2010-11-30 09:30:54 +00:00
Georg Brandl
53afa6d239
Fix input type for zlib.
2010-11-30 08:20:16 +00:00
Georg Brandl
8f358aa758
#10584 : fix bad links.
2010-11-30 07:43:28 +00:00
Raymond Hettinger
5e20bab422
Neaten-up a bit.
2010-11-30 07:13:04 +00:00
Nick Coghlan
7921b9f210
Issue 10220: switch to using string constants rather than integers for inspect.getgeneratorstate() return values and make debugging friendly str() and repr() for generator states a requirement in the test suite
2010-11-30 06:36:04 +00:00
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
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
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
3d0f388a6b
Remove the comment used while testing.
2010-11-29 12:42:29 +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
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
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
Terry Reedy
dc9b17d922
Add version-added note twice for new difflib SequenceMatcher autojunk parameter.
2010-11-27 20:52:14 +00:00