Commit Graph

44411 Commits

Author SHA1 Message Date
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
Barry Warsaw d5eaa5fb5a sys.abiflags may not be defined on all platforms. 2010-11-25 01:34:47 +00:00
Ezio Melotti 17f9b3d289 Add NEWS entry for r86732 and fix double function in the table. 2010-11-24 22:02:18 +00:00
Barry Warsaw 807bd0a8a4 Put /usr/local paths after the relative paths in library_dirs and
include_dirs, so installed non-matching shared libraries don't break extension
module linking.  Fixes issue 10520.
2010-11-24 20:30:00 +00:00
Brian Curtin 1b9df39620 Fix #8879. Add os.link support to Windows.
Additionally, the st_ino attribute of stat structures was not being filled
in. This was left out of the fix to #10027 and was noticed due to
test_tarfile failing when applying the patch for this issue. An earlier
version of the fix to #10027 included st_ino, but that attribute got lost
in the shuffle of a few review/fix cycles. All tests pass.
2010-11-24 20:24:31 +00:00
Ezio Melotti f21c7ed39d #10299: Add a table that lists all the built-in functions in functions.rst 2010-11-24 20:18:02 +00:00
Barry Warsaw 14d98ac31b Final patch for issue 9807. 2010-11-24 19:43:47 +00:00
Barry Warsaw fdba067213 Remove unnecessary import. 2010-11-24 18:18:21 +00:00
Brian Curtin fc1be6d807 ifdef a Windows specific section. 2010-11-24 13:23:18 +00:00
Brian Curtin f5e76d01ea Fix #10027. st_nlink not set on Windows calls to os.stat/lstat.
Note: This patch has no tests because as of now there is no way to create
links. #8879 adds that and the tests will go in there. I've manually observed
that existing links on my system function properly with this.
2010-11-24 13:14:05 +00:00
Georg Brandl 59540f23ee Remove UTF-8 BOM. 2010-11-24 09:09:29 +00:00
Terry Reedy c11e9d1862 IssIssue 1859: Add Jeremy Thurgood to Misc/ACKS 2010-11-23 20:32:47 +00:00
Terry Reedy 6d2ab7126e Issue 1859: Doc that textwrap does not break on \n (pending possible behavior patch). Patch by Jeremy Thurgood. 2010-11-23 20:17:24 +00:00
Georg Brandl 4f13d6145f assert.h is also included. Thanks to Savio Sena. 2010-11-23 18:14:57 +00:00
Georg Brandl 57410c12e8 #10511: clarification of what heaps are; suggested by Johannes Hoff. 2010-11-23 08:37:54 +00:00
Georg Brandl 5a9326502d #10468: document Unicode exception creation and access functions. 2010-11-23 07:54:19 +00:00