Commit Graph

11801 Commits

Author SHA1 Message Date
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
Victor Stinner 388196ed72 Issue #12011: signal.signal() and signal.siginterrupt() raise an OSError,
instead of a RuntimeError: OSError has an errno attribute.
2011-05-10 17:13:00 +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
Raymond Hettinger 6a523489fa merge 2011-05-10 00:35:48 -07:00
Raymond Hettinger bb1cf8d9bc Issue 12047: Expand the style guide. 2011-05-10 00:35:03 -07: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
Victor Stinner 3de49192aa 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-09 00:42:58 +02:00
Georg Brandl da71013c11 Update suspicious ignore file. 2011-05-08 09:10:29 +02:00
Victor Stinner d49b1f14de Issue #8407: The signal handler writes the signal number as a single byte
instead of a nul byte into the wakeup file descriptor. So it is possible to
wait more than one signal and know which signals were raised.
2011-05-08 02:03:15 +02:00
Victor Stinner b3e7219abf Issue #8407: Add pthread_kill(), sigpending() and sigwait() functions to the
signal module.
2011-05-08 01:46:11 +02:00
Giampaolo Rodola' a55efb3b6f #11072- applying http://bugs.python.org/review/11072/show suggestions 2011-05-07 16:06:59 +02:00
Victor Stinner 7bba62fd68 faulthandler: dump all threads by default
* Set the default value of all_threads arguments to True
 * Py_FatalError() dumps all threads, instead of only the current thread

Dump only the current thread is not reliable. In some cases, Python is unable
to retrieve the state of the current thread and so is unable to dump the
traceback. faulthandler keeps a reference to the interpreter and so is always
able to dump the traceback of all threads.
2011-05-07 12:43:00 +02:00
Giampaolo Rodola' d78def9474 Issue #11072: added MLSD command (RFC-3659) support to ftplib. 2011-05-06 19:49:08 +02:00
Éric Araujo 17b60f0367 Also add versionchanged directive to the function doc (#11591) 2011-05-06 18:50:08 +02:00
Antoine Pitrou 0872816dc1 Issue #8808: The IMAP4_SSL constructor now allows passing an SSLContext
parameter to control parameters of the secure channel.  Patch by Sijin
Joseph.
2011-05-06 18:49:52 +02:00
Ezio Melotti b4dc2502ad Issue #10775: assertRaises, assertRaisesRegex, assertWarns, and assertWarnsRegex now accept a keyword argument 'msg' when used as context managers. Initial patch by Winston Ewert. 2011-05-06 15:01:41 +03:00
Eli Bendersky e168965bd0 Issue #11015: bring test.support docs up to date 2011-05-06 09:29:27 +03:00
Nick Coghlan 7ceb1804b0 Merge #11647 update from 3.2 2011-05-05 23:58:57 +10:00
Nick Coghlan 0ded3e307b Issue #11647: allow contextmanager objects to be used as decorators as described in the docs. Initial patch by Ysj Ray. 2011-05-05 23:49:25 +10:00
Ezio Melotti 868fc87591 #11997: merge with 3.2. 2011-05-05 14:21:55 +03:00
Ezio Melotti f77b74dd1b #11997: merge with 3.1. 2011-05-05 14:21:18 +03:00
Ezio Melotti d92ab0806d #11997: fix typo in init.rst. 2011-05-05 14:19:48 +03:00
Alexander Belopolsky 6d3c9a6893 Mention that timezone is a subclass of tzinfo. 2011-05-04 10:28:26 -04:00
Victor Stinner 35b300c5fd Issue #8407: signal.pthread_sigmask() returns a set instead of a list
Update the doc. Refactor also related tests.
2011-05-04 13:20:35 +02:00
Brian Curtin afd01172f9 Fix #11834. Correct site-packages paths.
Patch by Bryce Verdier.
2011-05-03 21:58:32 -05:00
Brian Curtin 03b8d4e47b Fix #11834. Correct site-packages paths.
Patch by Bryce Verdier.
2011-05-03 21:57:56 -05:00
Brian Curtin 308053ee11 Fix #11834. Correct site-packages paths.
Patch by Bryce Verdier.
2011-05-03 21:57:00 -05:00
Ezio Melotti 4e787aeed6 #11985: merge with 3.2. 2011-05-03 20:44:26 +03:00
Ezio Melotti 5098d44354 #11985: merge with 3.1. 2011-05-03 20:43:48 +03:00
Ezio Melotti b351bcca23 #11985: document the return value of platform.python_implementation for PyPy. 2011-05-03 20:41:48 +03:00
Brian Curtin 49a40cd562 Adjust OS/2 & VMS grammar, and add Windows 2000 to the unsupported list. 2011-05-02 22:30:06 -05:00
Alexander Belopolsky 5611a1c326 Issue #11930: Added Misc/NEWS and versionchanged entries. 2011-05-02 14:14:48 -04:00
Alexander Belopolsky 89da349b7b Issue #11930: Remove year >= 1000 limitation from datetime.strftime.
Patch by Victor Stinner.
2011-05-02 13:14:24 -04:00
Alexander Belopolsky 03163ac185 Issue #11930: Remove deprecated time.accept2dyear. 2011-05-02 12:20:52 -04:00
Éric Araujo f95f18048d Merge 3.2 2011-05-02 13:33:14 +02:00
Éric Araujo 38cfe89665 Merge 3.1 2011-05-02 13:12:23 +02:00
Éric Araujo cd6756d2ae Branch merge 2011-05-02 13:10:36 +02:00
Éric Araujo b79c234e1a Add missing colon 2011-05-02 13:10:18 +02:00
Benjamin Peterson 0255973af6 merge 3.2 2011-05-01 20:24:59 -05:00
Benjamin Peterson c704378987 merge 3.1 2011-05-01 20:24:40 -05:00
Raymond Hettinger 9b2fd32cc5 Fix spelling. 2011-05-01 18:14:49 -07:00
Victor Stinner fadeeffe5b (Merge 3.2) Issue #11277: mmap.mmap() calls fcntl(fd, F_FULLFSYNC) on Mac OS X
to get around a mmap bug with sparse files. Patch written by Steffen Daode
Nurpmeso.
2011-05-02 01:14:55 +02:00
Victor Stinner 8108e96bc8 (Merge 3.1) Issue #11277: mmap.mmap() calls fcntl(fd, F_FULLFSYNC) on Mac OS X
to get around a mmap bug with sparse files. Patch written by Steffen Daode
Nurpmeso.
2011-05-02 01:11:33 +02:00
Victor Stinner a6cd0cf0f5 Issue #11277: mmap calls fcntl(fd, F_FULLFSYNC) on Mac OS X to get around a
mmap bug with sparse files. Patch written by Steffen Daode Nurpmeso.
2011-05-02 01:05:37 +02:00
Benjamin Peterson 47583fa9b4 merge 3.2 2011-05-01 17:39:52 -05:00
Benjamin Peterson cee01bf18f merge 3.1 2011-05-01 17:39:40 -05:00
Benjamin Peterson 10116d40d8 note abcs of int and float (closes #11977) 2011-05-01 17:38:17 -05:00
Georg Brandl 6c32b4a601 merge with 3.2 2011-05-01 22:37:46 +02:00
Georg Brandl da623ed9f4 Split combined code/doctest code blocks in two blocks, to enable proper highlighting. 2011-05-01 22:37:23 +02:00
Georg Brandl 2cdee708e9 Split combined code/doctest code blocks in two blocks, to enable proper highlighting. 2011-05-01 22:34:31 +02:00
Éric Araujo 3bba57d596 Fix wording 2011-05-01 02:14:48 +02:00
R David Murray afbc8506a1 Merge #11883: fix email examples by adding 'localhost' to SMTP constructor calls 2011-04-30 17:29:28 -04:00
R David Murray 361a7df323 Merge #11883: fix email examples by adding 'localhost' to SMTP constructor calls 2011-04-30 17:29:08 -04:00
R David Murray bb754b503c #11883: fix email examples by adding 'localhost' to SMTP constructor calls 2011-04-30 17:26:32 -04:00
R David Murray d3f075a4c0 Merge #11883: replace incorrect call to sendmail with correct call to send_message 2011-04-30 17:20:44 -04:00
R David Murray 7461298c9c #11883: replace incorrect call to sendmail with correct call to send_message 2011-04-30 17:19:53 -04:00
R David Murray c55a7ea2b8 Merge #11901: post-commit review fixes per Georg Brandl 2011-04-30 16:36:37 -04:00
R David Murray b751d6195f Merge #11901: post-commit review fixes per Georg Brandl 2011-04-30 16:36:08 -04:00
R David Murray 9beb34ee0d #11901: post-commit review fixes per Georg Brandl 2011-04-30 16:35:29 -04:00
Benjamin Peterson 1a5097244a merge 3.2 2011-04-30 13:16:14 -05:00
Benjamin Peterson f97aed1a25 merge 3.1 2011-04-30 13:15:18 -05:00
Benjamin Peterson 4c020885d9 fix function name in example (closes #11966) 2011-04-30 13:14:56 -05:00
Georg Brandl 00db582272 Fix indentation. 2011-04-30 15:30:03 +02:00
Victor Stinner a929335961 Issue #8407, issue #11859: Add signal.pthread_sigmask() function to fetch
and/or change the signal mask of the calling thread.

Fix also tests of test_io using threads and an alarm: use pthread_sigmask() to
ensure that the SIGALRM signal is received by the main thread.

Original patch written by Jean-Paul Calderone.
2011-04-30 15:21:58 +02:00
Victor Stinner d5c355ccc7 Issue #11223: Replace threading._info() by sys.thread_info 2011-04-30 14:53:09 +02:00
Brian Curtin 6b549a4d8b Fix #11961. Document STARTUPINFO and creation flag options. 2011-04-29 22:21:35 -05:00
Brian Curtin 3040193401 Fix #11961. Document STARTUPINFO and creation flag options. 2011-04-29 22:20:57 -05:00
Brian Curtin 73365dd887 whitespace... 2011-04-29 22:18:33 -05:00
Brian Curtin e6242d77bd Fix #11961. Document STARTUPINFO and creation flag options. 2011-04-29 22:17:51 -05:00
Georg Brandl 0cd25c9dd9 Small grammar fix. 2011-04-29 13:45:54 +02:00
Ezio Melotti 025691a5fe #11952: merge with 3.2. 2011-04-29 07:13:12 +03:00
Ezio Melotti 17797a7310 #11952: merge with 3.1. 2011-04-29 07:12:42 +03:00
Ezio Melotti 2ee88355fc #11952: Fix typo in multiprocessing doc. 2011-04-29 07:10:24 +03:00
Antoine Pitrou 15399c3f09 Issue #11811: ssl.get_server_certificate() is now IPv6-compatible. Patch
by Charles-François Natali.
2011-04-28 19:23:55 +02:00
Łukasz Langa e812bf7bf6 Merged styling updates for #11670 from 3.2. 2011-04-28 12:02:58 +02:00
Łukasz Langa ba702daef9 Style updates for the #11670 solution after post-commit review by Ezio Melotti:
http://mail.python.org/pipermail/python-checkins/2011-April/104688.html

Thanks!
2011-04-28 12:02:05 +02:00
Raymond Hettinger 121bf6aa61 Issue #11940: Update external link. 2011-04-27 16:33:01 -07:00
Raymond Hettinger 4f7412356d Issue #11940: Update external link. 2011-04-27 16:32:34 -07:00
Raymond Hettinger 507cbc1773 Issue #11940: Update external link. 2011-04-27 16:32:08 -07:00
Ezio Melotti 98be2b72c6 #11942: merge with 3.2. 2011-04-28 00:53:48 +03:00
Ezio Melotti a782ccaf6c #11942: merge with 3.1. 2011-04-28 00:53:14 +03:00
Ezio Melotti f95033ba44 #11942: Fix return type of Py_AddPendingCall. Patch by Sandro Tosi. 2011-04-28 00:48:46 +03:00
Łukasz Langa 2356659f34 Merged trailing whitespace fix. 2011-04-27 18:14:04 +02:00
Łukasz Langa 43ae619925 Fixed trailing whitespace in the ReST file. 2011-04-27 18:13:42 +02:00
Łukasz Langa 29050d7317 Merged #11670 from 3.2 2011-04-27 18:11:50 +02:00
Łukasz Langa daab1c8092 Closes #11670: configparser read_file now iterates over f. 2011-04-27 18:10:05 +02:00
Éric Araujo 0abb8b74d9 Merge 3.2 2011-04-27 16:32:36 +02:00
Éric Araujo 7fb624fe51 Branch merge 2011-04-27 16:28:50 +02:00
Éric Araujo 944d16c6c4 Merge 3.1 2011-04-27 16:27:38 +02:00
Éric Araujo 19acb88baf Branch merge 2011-04-27 16:25:27 +02:00
Éric Araujo 9a42793761 Branch merge 2011-04-27 16:23:56 +02:00
Éric Araujo 10f3d7acbd Change markup so it generates a link 2011-04-27 16:22:32 +02:00
Raymond Hettinger f3d77dc94a merge 2011-04-26 13:59:59 -07:00
Raymond Hettinger 441ed91a88 Issue 11929: Minor whitespace clean-ups. 2011-04-26 13:56:29 -07:00
Raymond Hettinger 40fc59d98b Issue 11929: Minor whitespace clean-ups. 2011-04-26 13:55:55 -07:00
Victor Stinner b90db4caf0 Issue #11918: OS/2 and VMS are no more supported because of the lack of
maintainer.
2011-04-26 22:48:24 +02:00
Antoine Pitrou 45456a09f0 I think this should be "versionchanged", not "versionadded" 2011-04-26 18:53:42 +02:00
R David Murray dff18b0858 Merge #11901: add description of how bitfields are laid out to hexversion docs
Patch by Sijin Joseph.
2011-04-25 16:14:26 -04:00
R David Murray 0fb5b398cd Merge #11901: add description of how bitfields are laid out to hexversion docs
Patch by Sijin Joseph.
2011-04-25 16:13:54 -04:00
R David Murray 2043f9c582 #11901: add description of how bitfields are laid out to hexversion docs
Patch by Sijin Joseph.
2011-04-25 16:12:26 -04:00
Éric Araujo 16190c8236 Change markup so that it creates a link 2011-04-25 19:05:53 +02:00
Alexander Belopolsky 54afa5504c Issue #2736: Documented how to compute seconds since epoch. 2011-04-25 13:00:40 -04:00
Éric Araujo 3e8987025f Add versionchanged for c19752ea037f (#10998) 2011-04-24 04:37:00 +02:00
Éric Araujo ce4c4074f9 The version* directives don’t work with a blank line between arguments 2011-04-24 03:31:37 +02:00
Éric Araujo b1734516c2 Add versionchanged for a364719e400a (#11591) 2011-04-24 03:15:32 +02:00
Éric Araujo 405d77872b Remove unneeded backslashes 2011-04-24 03:00:58 +02:00
Éric Araujo 08c9bd57f2 Remove unneeded backslashes 2011-04-24 02:59:02 +02:00
Éric Araujo 92952cc181 Merge 3.2 2011-04-24 02:49:10 +02:00
Éric Araujo 0c91e1d941 Branch merge 2011-04-24 02:47:37 +02:00
Éric Araujo b547148d16 Fix indentation 2011-04-24 02:44:39 +02:00
Éric Araujo fbeb1a9468 Merge 3.1 2011-04-24 02:42:52 +02:00
Éric Araujo cae1be85f5 Branch merge 2011-04-24 02:39:43 +02:00
Éric Araujo 5348b63a91 Branch merge 2011-04-24 02:34:11 +02:00
Éric Araujo 2b9388a033 Fix weird executable name 2011-04-22 21:27:10 +02:00
Ezio Melotti 707d1e6cea Merge with 3.2. 2011-04-22 01:57:47 +03:00
Ezio Melotti 5569e9b150 Fix some more markup glitches in argparse doc. 2011-04-22 01:42:10 +03:00
Ezio Melotti 7817e3b151 #11904-#11905: Merge typo fixes with 3.2. 2011-04-21 23:12:53 +03:00
Ezio Melotti dca309d137 #11905: fix missing full stop in argparse doc. Noticed by Vladimir Rutsky. 2011-04-21 23:09:27 +03:00
Ezio Melotti 2f1db7def9 #11904: fix indentation in argparse doc. Noticed by Vladimir Rutsky. 2011-04-21 23:06:48 +03:00
Ezio Melotti ccb054759a #11902: Merge with 3.2. 2011-04-21 22:58:40 +03:00
Ezio Melotti 00f53afdda #11902: Fix typo in argparse doc. Noticed by Vladimir Rutsky. 2011-04-21 22:56:51 +03:00
Raymond Hettinger 295c1d4f19 Add another example for accumulate(). 2011-04-21 11:09:28 -07:00
Ezio Melotti 5bba6c2785 Merge with 3.2. 2011-04-21 16:13:44 +03:00
Ezio Melotti 0ee9c1be76 Add the :mod: role where it was missing. 2011-04-21 16:12:17 +03:00
Ezio Melotti c6f079d1b2 #11885: Merge with 3.2. 2011-04-21 15:29:04 +03:00
Ezio Melotti cca4ef8cba #11885: capitalize Python. 2011-04-21 15:26:46 +03:00
Ezio Melotti 5149eedddf #11897: Merge with 3.2. 2011-04-21 14:49:56 +03:00
Ezio Melotti c17c1f64aa #11897: Fix typo in porting howto. Patch by Marti Raudsepp. 2011-04-21 14:49:03 +03:00
Éric Araujo de579d4359 Add a space to make json doc a bit more readable 2011-04-21 02:37:41 +02:00
Benjamin Peterson 2b8ef2df57 say struct sequence rather than structseq and link to glossary 2011-04-20 18:31:22 -05:00
Benjamin Peterson 82f614b20a glossary entry for struct sequence 2011-04-20 18:27:32 -05:00
Ezio Melotti 32f4db3175 Merge with 3.2. 2011-04-20 21:33:29 +03:00