Commit graph

40831 commits

Author SHA1 Message Date
Jeffrey Yasskin
2d873bd68b Issue 4597: Fix several cases in EvalFrameEx where an exception could be
"raised" without setting x, err, or why to let the eval loop know.
2008-12-08 18:55:24 +00:00
Martin v. Löwis
b5120ceae2 Consider micro version for name of CHM file. 2008-12-08 11:15:35 +00:00
Martin v. Löwis
17fa44f617 Add UUIDs for 2.6.1 and 2.6.2. 2008-12-08 11:14:57 +00:00
Georg Brandl
f8668ce473 #4457: rewrite __import__() documentation. 2008-12-07 22:42:09 +00:00
Georg Brandl
6212971e95 Add link to the favicon to the docs. 2008-12-07 11:54:07 +00:00
Skip Montanaro
4f7f77b7a5 muffed the default case 2008-12-07 02:16:00 +00:00
Antoine Pitrou
ae5beceb35 Issue #4509: bugs in bytearray with exports (buffer protocol) 2008-12-06 21:29:24 +00:00
Skip Montanaro
45313fe6e0 issue 4483 - dbm build failures on systems with gdbm_compat lib. 2008-12-06 17:43:30 +00:00
Georg Brandl
f5d5a66349 Follow-up to #4488: document PIPE and STDOUT properly. 2008-12-06 11:57:12 +00:00
Mark Dickinson
826f3fefe5 Issue #4445: save 3 bytes (on average, on a typical machine) per
string allocation.
2008-12-05 21:55:28 +00:00
Georg Brandl
205e719fac Remove confusing sentence part. 2008-12-05 19:03:19 +00:00
Georg Brandl
5066c0cf95 Followup to #4511: add link from decorator glossary entry to definition. 2008-12-05 18:00:06 +00:00
Mark Dickinson
422ce06b9c Issue #4461: Safety check in parsenumber (ast.c) 2008-12-05 17:59:46 +00:00
Fred Drake
f7f1fb68da be more specific, and parallel to the py3k branch 2008-12-05 16:14:18 +00:00
Fred Drake
0afa20c49a bump version number 2008-12-05 15:52:25 +00:00
Georg Brandl
248e172ff8 Move __import__ to the bottom of the functions list.
It doesn't make sense for such a fundamental document to have
the most obscure function listed at the top.
2008-12-05 15:52:20 +00:00
Georg Brandl
95a840b044 #3171: document that *slice are removed in 3k. 2008-12-05 15:42:03 +00:00
Georg Brandl
905e0f65ba #4478: document that copyfile() can raise Error. 2008-12-05 15:32:29 +00:00
Georg Brandl
9a05373145 #4517: add "special method" glossary entry and clarify when __getattribute__ is bypassed. 2008-12-05 15:29:39 +00:00
Georg Brandl
fe879e8a23 #4529: fix parser's validation for try-except-finally statements. 2008-12-05 12:09:41 +00:00
Georg Brandl
3129ea2e05 #4544: add dedent to textwrap.__all__. 2008-12-05 11:34:51 +00:00
Georg Brandl
e70ff4bf0d #4441 followup: Add link to open() docs for Windows. 2008-12-05 09:25:32 +00:00
Georg Brandl
a07435d3e3 #4458: recognize "-" as an argument, not a malformed option in gnu_getopt(). 2008-12-05 09:23:14 +00:00
Georg Brandl
8d6c49047f Use markup. 2008-12-05 09:13:45 +00:00
Georg Brandl
3fc4226057 Add an index entry for "subclassing immutable types". 2008-12-05 08:06:57 +00:00
Georg Brandl
0c880bd4fb #4441: improve doc for os.open() flags. 2008-12-05 08:02:17 +00:00
Georg Brandl
5b5f273640 #4409: fix asterisks looking like footnotes. 2008-12-05 07:52:26 +00:00
Georg Brandl
b46f0d788c #4408: document regex.groups. 2008-12-05 07:49:49 +00:00
Gregory P. Smith
26576801a6 rename the new check_call_output to check_output. its less ugly. 2008-12-05 02:27:01 +00:00
Georg Brandl
1743201364 Clarification to avoid confusing output with file descriptors. 2008-12-04 21:28:16 +00:00
Vinay Sajip
6831d6bc7f Took Nick Coghlan's advice about importing warnings globally in logging, to avoid the possibility of race conditions: "This could deadlock if a thread spawned as a side effect of importing a module happens to trigger a warning. warnings is pulled into sys.modules as part of the interpreter startup - having a global 'import warnings' shouldn't have any real effect on logging's import time." 2008-12-04 20:32:18 +00:00
Gregory P. Smith
97f49f4be7 Adds a subprocess.check_call_output() function to return the output from a
process on success or raise an exception on error.
2008-12-04 20:21:09 +00:00
Georg Brandl
32d1408192 Add another heapq example. 2008-12-04 18:59:16 +00:00
Georg Brandl
34196c851a Add reference to enumerate() to indices example. 2008-12-04 18:54:05 +00:00
Fred Drake
5248103ef9 Issue #1055234: cgi.parse_header(): Fixed parsing of header parameters to
support unusual filenames (such as those containing semi-colons) in
Content-Disposition headers.
2008-12-04 18:25:17 +00:00
Christian Heimes
ed2f423775 Bumped up 2.6 to 2.7 2008-12-04 14:34:40 +00:00
Vinay Sajip
213faca204 Issue #4384: Added logging integration with warnings module using captureWarnings(). This change includes a NullHandler which does nothing; it will be of use to library developers who want to avoid the "No handlers could be found for logger XXX" message which can appear if the library user doesn't configure logging. 2008-12-03 23:22:58 +00:00
Raymond Hettinger
7989a4dccb Backport r67478 2008-12-03 15:42:10 +00:00
Jeffrey Yasskin
fd8a1ec486 Speed up Python (according to pybench and 2to3-on-itself) by 1-2% by caching
whether any thread has tracing turned on, which saves one load instruction in
the fast_next_opcode path in PyEval_EvalFrameEx().  See issue 4477.
2008-12-03 06:46:45 +00:00
Christian Heimes
dee3c9c606 Issue #4025 again
Converted a C99 style comment to a C89 style comment (found by MAL).
2008-12-03 00:53:18 +00:00
Benjamin Peterson
cb948f12c9 let people using SVN Sphinx still build the docs 2008-12-01 12:52:51 +00:00
Skip Montanaro
4d756afd68 typo in comment 2008-12-01 01:55:22 +00:00
Benjamin Peterson
dedb0b1813 fix pyspecific extensions that were broken by Sphinx's grand renaming 2008-11-30 21:46:16 +00:00
Christian Heimes
c70e5f9975 w# requires Py_ssize_t 2008-11-30 21:16:28 +00:00
Martin v. Löwis
bcb017f353 Issue #4365: Add crtassem.h constants to the msvcrt module. 2008-11-30 19:28:27 +00:00
Benjamin Peterson
98b1b02fbf note the version that works 2008-11-30 14:43:23 +00:00
Martin v. Löwis
cb6c359a6d Issue #4389: Add icon to the uninstall entry in
"add-and-remove-programs".
2008-11-30 11:08:26 +00:00
Benjamin Peterson
4f21f985eb StringIO.close() stops you from using the buffer, too 2008-11-30 03:07:33 +00:00
Amaury Forgeot d'Arc
2a1fd05971 Fix a small typo in docstring 2008-11-29 02:03:32 +00:00
Jeremy Hylton
0381f48936 Send HTTP headers and message body in a single send() call.
This change addresses part of issue 4336.

Change endheaders() to take an optional message_body argument
that is sent along with the headers.  Change xmlrpclib and
httplib's other methods to use this new interface.

It is more efficient to make a single send() call, which should
get the entire client request into one packet (assuming it is
smaller than the MTU) and will avoid the long pause for delayed
ack following timeout.

Also:
- Add a comment about the buffer size for makefile().
- Extract _set_content_length() method and fix whitespace issues there.
2008-11-29 01:09:35 +00:00