Commit graph

44426 commits

Author SHA1 Message Date
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
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
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
Alexander Belopolsky
1f75f5d506 Fixed deprecation warnings. 2010-11-26 18:51:39 +00:00
Stefan Krah
0e803b3322 Further indentation cleanup. 2010-11-26 16:16:47 +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
Georg Brandl
c877a7c201 Use PyLong_FromLong where appropriate. 2010-11-26 11:55:48 +00:00
Georg Brandl
8449932320 #10526: fix typo. 2010-11-26 11:50:13 +00:00
Stefan Krah
735bb12b01 Indentation cleanup. 2010-11-26 10:54:09 +00:00
Senthil Kumaran
67f953c5e7 s/colour/color/g 2010-11-26 02:20:04 +00:00
Éric Araujo
31717e8a55 #10453 follow-up: Fix test_quiet on Windows, thanks to Stephan Krah. 2010-11-26 00:39:59 +00:00
Eric Smith
984bb58000 Issue #7094: Add alternate ('#') flag to __format__ methods for float, complex and Decimal. Allows greater control over when decimal points appear. Added to make transitioning from %-formatting easier. '#g' still has a problem with Decimal which I'll fix soon. 2010-11-25 16:08:06 +00:00
Senthil Kumaran
c1d98d6850 Mouse support and colour to Demo/curses/life.py by Dafydd Crosby 2010-11-25 14:56:44 +00:00
Amaury Forgeot d'Arc
24aa26b05e Fix compilation warnings seen on Windows.
'typecode' is always an ascii letter, there was no data lost.
2010-11-25 08:13:35 +00:00
Raymond Hettinger
5fa40c01ad Clean-up docstring, comments, and whitespace. 2010-11-25 08:11:57 +00:00
Terry Reedy
99f9637de8 Issue 2986: Add autojunk paramater to SequenceMatcher to turn off heuristic. Patch by Terry Reedy, Eli Bendersky, and Simon Cross 2010-11-25 06:12:34 +00:00
Barry Warsaw
bd86301070 sys.abiflags is not defined on all platforms. 2010-11-25 03:46:44 +00:00