Commit Graph

49706 Commits

Author SHA1 Message Date
Éric Araujo d66d95cdd0 Document working dir for “make html” (#12249). Patch by Tshepang Lekhonkhobe. 2011-06-03 19:25:58 +02:00
Raymond Hettinger 45b082935d Fix named tuples to work with vars(). 2011-06-02 20:40:35 -07:00
Raymond Hettinger 19b851d11b sys.checkinterval() now refreshes the current countdown ticker. 2011-06-01 18:21:42 -07:00
Raymond Hettinger 88fc66179b Cleanup example 2011-06-01 16:01:21 -07:00
Raymond Hettinger 690d4ae8bf Multiple clean-ups to the docs for builtin functions.
* Use concrete example for dir() and eliminate the distracting doctest directives.
* Add a pure python equivalent for enumerate()
* Modify the enumerate() example to demonstrate the start argument
* Remove incorrect reference the *iterable* in the enumerate() docs.
* Downgrade the comments on input() from a warning to a note.
* Fix the iter() example to use the empty string as the terminating
  condition for file.readline().  Also, the old example was broken
  because readline() results include a newline, so 'STOP\n' would have
  been the correct terminating condition.  Even with that fix, the
  STOP example was fragile and would have lead to infinite loops with
  malformed inputs.
* Do not refer to classmethod as being "more advanced" than staticmethod.
2011-06-01 15:50:34 -07:00
Raymond Hettinger 783a30f38e Link to suggestions for how to use super(). 2011-06-01 14:57:13 -07:00
Éric Araujo 2845365bf2 Branch merge 2011-06-01 19:28:26 +02:00
Benjamin Peterson bdc21fbaf9 merge heads 2011-05-31 19:08:12 -05:00
Benjamin Peterson 35a9b1ca13 merge 2.7.2 release branch 2011-05-31 19:01:23 -05:00
Benjamin Peterson 4ba009d8dc simply use the Python version for pyexpat.__version__ #12221 2011-05-31 18:59:49 -05:00
Victor Stinner e9b185f263 Issue #12085: Fix test_subprocess for my previous commit
Replace support by test_support, and add captured_stderr() function.
2011-06-01 01:57:48 +02:00
Benjamin Peterson f14e42077c add 2.7.2 header 2011-05-31 18:44:55 -05:00
Victor Stinner 776e69b5b3 Close #12085: Fix an attribute error in subprocess.Popen destructor if the
constructor has failed, e.g. because of an undeclared keyword argument. Patch
written by Oleg Oshmyan.
2011-06-01 01:03:00 +02:00
Éric Araujo 346d8609a1 Fix markup: arguments in a class directive are __init__ arguments, not base classes 2011-05-31 21:50:22 +02:00
Éric Araujo f2f8503b65 Fix error message to use the Python name instead of the C name 2011-05-31 14:08:40 +02:00
Victor Stinner d9f5292443 Issue #12057: Add tests for ISO 2022 codecs
iso2022_jp, iso2022_jp_2 and iso2022_kr
2011-05-30 23:58:21 +02:00
Victor Stinner d3c7e17a16 Issue #1195: fix the issue number of the NEWS entry 2011-05-30 23:49:13 +02:00
Victor Stinner 08563d904d Issue #12016: my_fgets() now always clears errors before calling fgets(). Fix
the following case: sys.stdin.read() stopped with CTRL+d (end of file),
raw_input() interrupted by CTRL+c.
2011-05-30 23:44:13 +02:00
Benjamin Peterson b0b64056d7 Added tag v2.7.2rc1 for changeset f48756685406 2011-05-29 16:50:40 -05:00
Benjamin Peterson cd20705902 bump to 2.7.2rc1 2011-05-29 16:50:27 -05:00
Éric Araujo 8c0c9d2641 Branch merge 2011-05-29 17:57:29 +02:00
Ned Deily c4f97f4fdc Issue #12205: Fix test_subprocess failure due to uninstalled test data. 2011-05-29 02:36:17 -07:00
Éric Araujo 28ef3c4726 Re-add missing doc stub for the distutils check command 2011-05-29 00:31:30 +02:00
Éric Araujo bee18a31ad Backport doc improvements for distutils.cmd.Command (#9223).
Original commit by Georg Brandl.
2011-05-29 00:11:59 +02:00
Éric Araujo be77831375 Fix test_distutils when sys.dont_write_bytecode is true (#9831).
The tests now pass all combinations of -O/-OO and -B.  See also #7071
and #6292 for previous variations on the same theme.
2011-05-28 23:21:19 +02:00
Ned Deily 22f63b50e3 Issue #11217: For 64-bit/32-bit Mac OS X universal framework builds,
ensure "make install" creates symlinks in --prefix bin for the "-32"
files in the framework bin directory like the installer does.
2011-05-28 05:56:14 -07:00
Martin v. Löwis 609e36d887 Nearly null-merge 2.5.6 2011-05-28 14:14:17 +02:00
Martin v. Löwis 9c53584ebd Nearly null-merge 2.5.6 2011-05-28 14:13:32 +02:00
Martin v. Löwis 228516c3f8 merge 2.5.6c1 tag 2011-05-28 14:06:55 +02:00
Martin v. Löwis dcdf0320c0 Added tag v2.5.6c1 for changeset a87c7b96672b 2011-05-28 14:05:31 +02:00
Martin v. Löwis 4ca9d48a04 Added tag v2.5.6 for changeset de34c7b097e8 2011-05-28 14:00:37 +02:00
Martin v. Löwis 11a859d70d r88840: Prepare for 2.5.6. 2011-05-28 13:58:36 +02:00
Martin v. Löwis e81c485e57 r88828: Fix year. 2011-05-28 13:57:28 +02:00
Martin v. Löwis cf60858b55 r88824: Prepare for 2.5.6c1. 2011-05-28 13:56:22 +02:00
Ned Deily 482f908410 Issue #9670: Increase the default stack size for secondary threads on
Mac OS X and FreeBSD to reduce the chances of a crash instead of a
"maximum recursion depth" RuntimeError exception.
(patch by Ronald Oussoren)
2011-05-28 00:11:54 -07:00
Benjamin Peterson 1e94021ea5 merge heads 2011-05-26 09:57:21 -05:00
Benjamin Peterson 4fa68ab10b raise an ValueError in getvalue() on closed StringIO (closes #12161)
Thanks for Catalin Iacob for the patch.
2011-05-26 09:56:41 -05:00
Éric Araujo 8fcda6829a Branch merge 2011-05-26 16:52:22 +02:00
Victor Stinner dbfba1667c Close #12182: Fix pydoc.HTMLDoc.multicolumn() if Python uses the new (true)
division (python -Qnew). Patch written by Ralf W. Grosse-Kunstleve.
2011-05-26 13:37:25 +02:00
Kurt B. Kaiser a5392455f6 IDLE: #6378: Further adjust idle.bat to start associated Python 2011-05-25 22:36:51 -04:00
Victor Stinner daf17e9bc8 Issue #12175: RawIOBase.readall() now returns None if read() returns None. 2011-05-25 22:52:37 +02:00
Victor Stinner 5100a405dc Issue #12175: FileIO.readall() now raises a ValueError instead of an IOError if
the file is closed.
2011-05-25 22:15:36 +02:00
Éric Araujo 31890bc9ba Fix display of html.parser.HTMLParser.feed docstrin 2011-05-25 18:11:43 +02:00
Éric Araujo ea088c5163 Add missing name in pkgutil.__all__ 2011-05-25 18:11:24 +02:00
Éric Araujo 78d9133989 Branch merge 2011-05-25 18:06:35 +02:00
Éric Araujo 18176f06b5 Fix two typos 2011-05-25 18:06:16 +02:00
Victor Stinner e2d9e26a10 Issue #12057: Add cjkencodings directory to the Makefile and Tools/msi/msi.py 2011-05-25 01:19:57 +02:00
Victor Stinner 9e5cdcc243 Issue #12057: Add tests for the HZ encoding 2011-05-25 00:19:07 +02:00
Charles-François Natali b94e0cde60 Issue #1441530: In imaplib, use makefile() to wrap the SSL socket to avoid
heap fragmentation and MemoryError with some malloc implementations.
2011-05-24 23:10:54 +02:00
Victor Stinner 40b41e1ffd Issue #12100: Don't reset incremental encoders of CJK codecs at each call to
their encode() method anymore, but continue to call the reset() method if the
final argument is True.
2011-05-24 22:29:13 +02:00