Commit graph

2771 commits

Author SHA1 Message Date
Gregory P. Smith
a454ef6985 Update documentation to mention bytes instead byte string and correct one
mentioned string to the accurate description of what type is required.
2011-05-22 22:29:49 -07:00
Gregory P. Smith
6352298ac4 Refer to the return value on nameindex and friends as a string, not a byte
string.  The code was fixed to return strings instead of bytes and to accept
either.
2011-05-22 22:16:57 -07:00
Charles-François Natali
1e045b1831 Issue #12105: Add O_CLOEXEC to the os module. 2011-05-22 20:42:32 +02:00
Raymond Hettinger
89cc452f4b Simplify example 2011-05-21 09:37:36 -07:00
Raymond Hettinger
f9ca76f500 Simplify example 2011-05-21 09:33:45 -07:00
Benjamin Peterson
2ed7521e96 merge 3.2 2011-05-20 11:49:58 -05:00
Benjamin Peterson
619323c68f merge 3.1 2011-05-20 11:49:19 -05:00
Benjamin Peterson
2340986fe0 this should actually be an IOError 2011-05-20 11:49:06 -05:00
Benjamin Peterson
7f071e6e9f merge 3.2 2011-05-20 11:42:47 -05:00
Benjamin Peterson
c7dd737ef7 merge 3.1 2011-05-20 11:41:59 -05:00
Benjamin Peterson
249b508c98 add example for not using access 2011-05-20 11:41:13 -05:00
Antoine Pitrou
e065020680 Issue #8809: The SMTP_SSL constructor and SMTP.starttls() now support
passing a `context` argument pointing to an ssl.SSLContext instance.
Patch by Kasun Herath.
2011-05-18 18:03:09 +02:00
Gregory P. Smith
5ed2e779f1 Issue #1746656: Add if_nameindex, if_nametoindex, if_indextoname
methods to the socket module.
2011-05-15 00:26:45 -07:00
Łukasz Langa
9334758955 Merged rethought pprint example from 3.2. 2011-05-14 22:58:17 +02:00
Łukasz Langa
d8eab60c00 Merged rethought pprint usage example from 3.1. 2011-05-14 22:49:10 +02:00
Łukasz Langa
4ad78ab766 pprint usage example rethought. 2011-05-14 22:43:44 +02:00
Raymond Hettinger
db3dd8a6cc Further beautification of the example 2011-05-13 01:39:22 -07:00
Raymond Hettinger
23157e5ddc Further beautification of the example 2011-05-13 01:38:31 -07:00
Raymond Hettinger
2584b2f9f3 Neaten up example so it can be cut and pasted. 2011-05-13 01:04:45 -07:00
Raymond Hettinger
9c47d778f7 Neaten up example so it can be cut and pasted. 2011-05-13 01:03:50 -07:00
Georg Brandl
93ea851e83 Merge two minor doc changes into default. 2011-05-13 07:01:58 +02:00
Georg Brandl
5166375045 Use singular they. Thanks to Mark Summerfield. 2011-05-13 06:55:28 +02:00
Georg Brandl
325477e20e Fix unbound local error in RE tokenizer example. Thanks to Herman L. Jackson. 2011-05-13 06:54:23 +02:00
Gregory P. Smith
c9557af441 merge - 7a3f3ad83676 Fixes Issue #12044. 2011-05-11 22:18:23 -07:00
Gregory P. Smith
6b65745430 - Issue #12044: Fixed subprocess.Popen when used as a context manager to
wait for the process to end when exiting the context to avoid unintentionally
  leaving zombie processes around.
2011-05-11 21:42:08 -07:00
Ezio Melotti
e9c7d6c3d9 Fix markup and working in the doc. 2011-05-12 01:10:57 +03:00
Raymond Hettinger
caece0a6a0 Document default fmtspec. Fix inaccurate note. Document exceptions. 2011-05-11 10:48:02 -07:00
Raymond Hettinger
30439b23c0 Document default fmtspec. Fix inaccurate note. Document exceptions. 2011-05-11 10:47:27 -07:00
Senthil Kumaran
57e6eac905 Issue #11968 - the start_response header values in wsgiref shoudl be str not
bytes. The PEP-0333 says that and test_wsgiref follows the same.  Updated docs
accordingly.
2011-05-11 22:34:59 +08:00
Senthil Kumaran
61b5efc2b9 Fix closed Issue #11968 - the start_response header values in wsgiref shoudl be
str not bytes. The PEP-0333 says that and test_wsgiref follows the same.
Updated docs accordingly.
2011-05-11 22:27:26 +08:00
Senthil Kumaran
4de00a2e87 Fix closes Issue #11799: urllib.request Authentication Handlers will raise a
ValueError when presented with an unsupported Authentication Scheme.
2011-05-11 21:17:57 +08:00
Senthil Kumaran
cc99528d87 issue12039 - update the documentation of send_response method in http.server.rst. 2011-05-11 16:04:28 +08:00
Senthil Kumaran
6ea17a88af Issue #12039 - Update the http.server.rst with the requirement to call end_headers after calling send_header. 2011-05-11 11:45:48 +08:00
Antoine Pitrou
3cade9942e Issue #8498: In socket.accept(), allow to specify 0 as a backlog value in
order to accept exactly one connection.  Patch by Daniel Evers.
2011-05-10 19:19:13 +02:00
Antoine Pitrou
1be815aac4 Issue #8498: In socket.accept(), allow to specify 0 as a backlog value in
order to accept exactly one connection.  Patch by Daniel Evers.
2011-05-10 19:16:29 +02:00
Łukasz Langa
3c6e4dd11f Merged trivial doc fix from 3.2. 2011-05-10 15:26:22 +02:00
Łukasz Langa
cda41d3bf7 Actually print out the description of what changed. 2011-05-10 15:25:41 +02:00
Victor Stinner
17ca323e7c (Merge 3.1) Issue #12012: ssl.PROTOCOL_SSLv2 becomes optional
OpenSSL is now compiled with OPENSSL_NO_SSL2 defined (without the SSLv2
protocol) on Debian: fix the ssl module on Debian Testing and Debian Sid.

Optimize also ssl.get_protocol_name(): speed does matter!
2011-05-10 00:48:41 +02:00
Victor Stinner
ee18b6f2fd Issue #12012: ssl.PROTOCOL_SSLv2 becomes optional
OpenSSL is now compiled with OPENSSL_NO_SSL2 defined (without the SSLv2
protocol) on Debian: fix the ssl module on Debian Testing and Debian Sid.

Optimize also ssl.get_protocol_name(): speed does matter!
2011-05-10 00:38:00 +02:00
Łukasz Langa
fc75393275 Merged solution for #12036 from 3.2 2011-05-09 18:50:47 +02:00
Łukasz Langa
725476222a Closes #12036: ConfigParser: Document items() added the vars dictionary to the result 2011-05-09 18:49:42 +02:00
Senthil Kumaran
c7ae19b6a7 Issue #3709: a flush_headers method to BaseHTTPRequestHandler which manages the
sending of headers to output stream and flushing the internal headers buffer.
Patch contribution by Andrew Schaaf
2011-05-09 23:25:02 +08:00
Martin v. Löwis
7c038b4726 merge 11164 2011-05-09 08:12:19 +02:00
Martin v. Löwis
867754e3e3 merge 11164 2011-05-09 08:10:38 +02:00
Martin v. Löwis
2f48d892d4 Stop trying to use _xmlplus in the xml module. Closes #11164.
Patch by Arfrever Frehtes Taifersar Arahesis.
2011-05-09 08:05:43 +02:00
Ezio Melotti
60480454bc Merge with 3.2. 2011-05-09 04:00:47 +03:00
Ezio Melotti
74efb71871 Merge with 3.1. 2011-05-09 04:00:06 +03:00
Ezio Melotti
0ed8c6897c Add a note to the str.find doc to suggest the use of the "in" operator. 2011-05-09 03:54:30 +03:00
Benjamin Peterson
eaee1385a0 note the point of having log2 2011-05-08 19:48:08 -05:00
Victor Stinner
fa0e3d52d6 Issue #11888: Add log2 function to math module. Patch written by Mark
Dickinson.
2011-05-09 01:01:09 +02:00