Benjamin Peterson
0c1036270d
remove intrcheck.c, which hasn't been used for years
2011-06-20 19:22:34 -05:00
Victor Stinner
d628496323
Close #12363 : fix a race condition in siginterrupt() tests
...
The previous tests used time.sleep() to synchronize two processes. If the host
was too slow, the test could fail.
The new tests only use one process, but they use a subprocess to:
- have only one thread
- have a timeout on the blocking read (select cannot be used in the test,
select always fail with EINTR, the kernel doesn't restart it)
- not touch signal handling of the parent process
2011-06-20 23:28:09 +02:00
Victor Stinner
395dc58ee7
(merge 3.2) Issue #12285 : multiprocessing.Pool() raises a ValueError if the
...
number of processes if negative or null.
2011-06-20 17:54:03 +02:00
Victor Stinner
2fae27b735
Issue #12285 : multiprocessing.Pool() raises a ValueError if the number of
...
processes if negative or null.
2011-06-20 17:53:35 +02:00
Victor Stinner
fb25ba9b07
Close #12289 : Fix "is executable?" test in the CGI server
...
Use os.access(path, os.X_OK) instead of (os.stat(path).st_mode & 0o111 != 0),
and ignore the test on Windows.
2011-06-20 17:45:54 +02:00
Senthil Kumaran
54e647f215
merge heads
2011-06-20 07:37:59 -07:00
Senthil Kumaran
1dbb7591da
merge from 3.2 - Fix closes Issue12359 - Removing a confusing sentence from the previous change.
2011-06-20 07:33:25 -07:00
Senthil Kumaran
4707a998e4
Fix closes Issue12359 - Removing a confusing sentence from the previous change.
2011-06-20 07:30:34 -07:00
Victor Stinner
d417d01ec8
call_find_module() handles dup() failure: raise an OSError exception
2011-06-20 15:16:55 +02:00
Victor Stinner
925ef39949
find_module_path_list() fails if _Py_fopen() failed and raised an exception
...
(UnicodeEncodeError).
2011-06-20 15:01:10 +02:00
Victor Stinner
7edb5dfcbc
Issue #6697 : _lsprof: normalizeUserObj() doesn't encode/decode (UTF-8) the
...
module name anymore, only work on unicode strings. Therefore it doesn't
truncate module names with embedded NUL characters, or fail if the module name
contains surrogate characters (UTF-8 encoder fails on a surrogate character).
Patch written by Alexander Belopolsky.
2011-06-20 14:59:53 +02:00
Victor Stinner
99563b1df8
calculate_path() decodes the PYTHONPATH environment variable from the locale
...
encoding using _Py_char2wchar() instead of mbstowcs() to store undecodable
bytes as surrogates characters (PEP 383) instead of ignoring silently
the PYTHONPATH variable.
2011-06-20 14:45:54 +02:00
Senthil Kumaran
d6b3840e7d
merge from 3.2
2011-06-19 18:23:17 -07:00
Senthil Kumaran
656df5ec3e
Fix closes issue 12360 - correcting parameter names in asyncore documentation.
2011-06-19 18:22:33 -07:00
Benjamin Peterson
52810a57f3
merge heads
2011-06-19 19:55:19 -05:00
Benjamin Peterson
e7c15fa184
bump magic for super closure change
2011-06-19 19:54:45 -05:00
Senthil Kumaran
14830dc5ac
merge heads
2011-06-19 17:50:53 -07:00
Benjamin Peterson
4092e68396
merge heads
2011-06-19 19:48:38 -05:00
Senthil Kumaran
dfb524829c
outstanding merge with 3.2
2011-06-19 17:48:35 -07:00
Benjamin Peterson
f5ff22329b
use a invalid name for the __class__ closure for super() ( closes #12370 )
...
This prevents the assignment of __class__ in the class body from breaking
super. (Although a determined person could do locals()["@__class__"] = 4)
2011-06-19 19:42:22 -05:00
Senthil Kumaran
150857028c
minor space nit.
2011-06-19 17:41:33 -07:00
Senthil Kumaran
bd4c321a3f
merge from 3.2. Issue 12359
2011-06-19 17:41:01 -07:00
Senthil Kumaran
5c0347b398
Fix closes Issue12359 - Minor update to module import description.
2011-06-19 17:37:06 -07:00
Senthil Kumaran
110cac1523
merge from 3.2
2011-06-19 17:00:29 -07:00
Senthil Kumaran
fd8d7e9b0d
Whitespace nit fixed using reident.
2011-06-19 16:59:41 -07:00
Senthil Kumaran
9f90470aa6
merge from 3.2. Updates to http.client documentation.
2011-06-19 16:57:49 -07:00
Senthil Kumaran
ce9b596c04
Fix closes Issue12315 - Updates to http.client documentation.
2011-06-19 16:56:49 -07:00
Benjamin Peterson
019d0f27a3
merge 3.2
2011-06-19 17:49:22 -05:00
Benjamin Peterson
206cd1c284
fix uglyNamingConvention
2011-06-19 17:49:13 -05:00
Benjamin Peterson
4b4b673eae
remove duplicate -I
2011-06-19 17:17:30 -05:00
Senthil Kumaran
8ae34b46c7
merge from 3.2
2011-06-19 13:56:56 -07:00
Senthil Kumaran
a977acc0fe
merge from 3.1 for issue issue12261.
2011-06-19 13:55:48 -07:00
Senthil Kumaran
fe9230aac6
Fix closes issue12261 - Minor documention changes in the urllib.parse.rst
2011-06-19 13:52:49 -07:00
Éric Araujo
54bb1e6aaf
Improve documentation of packaging hooks
2011-06-19 21:34:16 +02:00
Éric Araujo
3e425ac64b
packaging: Add the project directory to sys.path to support local setup hooks.
...
Original patch by Vinay Sajip on #11637 .
2011-06-19 21:23:43 +02:00
Éric Araujo
e043b6bac7
Add missing documentation for packaging.pypi.base and .simple
2011-06-19 19:23:48 +02:00
Éric Araujo
348c572dcf
Fix typo
2011-06-19 18:53:31 +02:00
Benjamin Peterson
12f2bffce1
merge heads
2011-06-19 09:38:02 -05:00
Benjamin Peterson
defe6f61fe
clarify
2011-06-19 09:37:18 -05:00
Victor Stinner
2510d9e8d9
faulthandler doc: the the => the
2011-06-19 16:07:20 +02:00
Nick Coghlan
3b83ff6138
ACKS update for devguide patch ( closes #12278 )
2011-06-19 23:07:49 +10:00
R David Murray
afc9a5eaa1
#6771 : Move wrapper function into __init__ and eliminate wrapper module
...
Andrew agreed in the issue that eliminating the module file made sense.
Wrapper has only been exposed as a function, and so there is no (easy)
way to access the wrapper module, which in any case only had the one
function in it. Since __init__ already contains a couple wrapper
functions, it seems to make sense to just move wrapper there instead of
importing it from a single function module.
2011-06-18 20:21:09 -04:00
R David Murray
50ae84e727
merge #6771 : fix docs: curses.wrapper is exposed as a function, not a module
2011-06-18 19:41:43 -04:00
R David Murray
409c32f47c
#6771 : fix docs: curses.wrapper is exposed as a function, not a module
...
Patch by July Tikhonov.
2011-06-18 19:34:12 -04:00
R David Murray
e76ff4081a
merge #11584 : make Header and make_header handle binary unknown-8bit input
2011-06-18 13:02:42 -04:00
R David Murray
e5e366c856
#11584 : make Header and make_header handle binary unknown-8bit input
...
Analogous to the decode_header fix, this fix makes Header.append and
make_header correctly handle the unknown-8bit charset introduced by email5.1,
when the input to them is binary strings. Previous to this fix the
make_header(decode_header(x)) == x invariant was broken in the face of the
unknown-8bit charset.
2011-06-18 12:57:28 -04:00
R David Murray
7df08379c6
merge #11584 : make decode_header handle Header objects correctly
...
This updates 12e39cd7a0e4 (merge of b21fdfa0019c), which fixed this bug
incorrectly.
2011-06-18 12:32:27 -04:00
R David Murray
6bdb1769dc
#11584 : make decode_header handle Header objects correctly
...
This updates b21fdfa0019c, which fixed this bug incorrectly.
2011-06-18 12:30:55 -04:00
R David Murray
6a73845082
#11781 : update windows build script to account for move of email tests
2011-06-18 11:45:59 -04:00
R David Murray
953510560f
merge #11700 : proxy object close methods can now be called multiple times
2011-06-17 22:25:14 -04:00