Ross Lagerwall
d98646e430
Issue #12607 : In subprocess, fix issue where if stdin, stdout or stderr is
...
given as a low fd, it gets overwritten.
2011-07-27 07:16:31 +02:00
Antoine Pitrou
d42c1d09e9
Issue #12591 : Allow io.TextIOWrapper to work with raw IO objects (without
...
a read1() method), and add a *write_through* parameter to
mandate unbuffered writes.
2011-07-23 21:50:21 +02:00
Antoine Pitrou
e96ec68101
Issue #12591 : Allow io.TextIOWrapper to work with raw IO objects (without
...
a read1() method), and add an undocumented *write_through* parameter to
mandate unbuffered writes.
2011-07-23 21:46:35 +02:00
Antoine Pitrou
d649480739
Issue #12551 : Provide a get_channel_binding() method on SSL sockets so as
...
to get channel binding data for the current SSL session (only the
"tls-unique" channel binding is implemented). This allows the
implementation of certain authentication mechanisms such as SCRAM-SHA-1-PLUS.
Patch by Jacek Konieczny.
2011-07-21 01:11:30 +02:00
Barry Warsaw
2ebada4233
- Issue #10309 : Define _GNU_SOURCE so that mremap() gets the proper
...
signature. Without this, architectures where sizeof void* != sizeof int are
broken. Patch given by Hallvard B Furuseth.
2011-07-19 19:23:56 -04:00
Barry Warsaw
d460a76e9e
- Issue #10309 : Define _GNU_SOURCE so that mremap() gets the proper
...
signature. Without this, architectures where sizeof void* != sizeof int are
broken. Patch given by Hallvard B Furuseth.
2011-07-19 18:28:30 -04:00
Antoine Pitrou
874d65afae
Issue #11321 : Fix a crash with multiple imports of the _pickle module when
...
embedding Python. Patch by Andreas Stührk.
2011-07-15 21:02:09 +02:00
Antoine Pitrou
8391cf4e1d
Issue #11321 : Fix a crash with multiple imports of the _pickle module when
...
embedding Python. Patch by Andreas Stührk.
2011-07-15 21:01:21 +02:00
Victor Stinner
a7878b77dc
Close #6755 : Add get_wch() method to curses.window class
...
Patch by Iñigo Serna.
2011-07-14 23:07:44 +02:00
Victor Stinner
a9a9dab042
Issue #12550 : Add chain optional argument to faulthandler.register()
...
Call the previous signal handler if chain is True.
2011-07-13 23:39:53 +02:00
Antoine Pitrou
90ce72dd06
Raise ValueError when attempting to set the _CHUNK_SIZE attribute of a TextIOWrapper to a huge value, not TypeError.
2011-07-13 21:08:56 +02:00
Antoine Pitrou
cb4ae815b5
Raise ValueError when attempting to set the _CHUNK_SIZE attribute of a TextIOWrapper to a huge value, not TypeError.
2011-07-13 21:07:49 +02:00
Antoine Pitrou
7128f95bd2
Issue #12440 : When testing whether some bits in SSLContext.options can be
...
reset, check the version of the OpenSSL headers Python was compiled against,
rather than the runtime version of the OpenSSL library.
2011-07-08 18:49:07 +02:00
Antoine Pitrou
b9ac25d1c3
Issue #12440 : When testing whether some bits in SSLContext.options can be
...
reset, check the version of the OpenSSL headers Python was compiled against,
rather than the runtime version of the OpenSSL library.
2011-07-08 18:47:06 +02:00
Victor Stinner
c655a726db
Issue #9611 , #9015 : FileIO.read() clamps the length to INT_MAX on Windows.
2011-07-05 11:31:49 +02:00
Victor Stinner
2cded9c3f3
Issue #12016 : Multibyte CJK decoders now resynchronize faster
...
They only ignore the first byte of an invalid byte sequence.
For example, b'\xff\n'.decode('gb2312', 'replace') gives '\ufffd\n' instead of
'\ufffd'.
2011-07-08 01:45:13 +02:00
Victor Stinner
081fe46ff9
Issue #9566 : cast unsigned int to Py_ssize_t in md5 and sha1 modules
...
Fix a compiler warning on Windows 64 bits.
2011-07-08 01:10:28 +02:00
Victor Stinner
7f53a5027d
Issue #12459 : time.sleep() now raises a ValueError if the sleep length is
...
negative, instead of an infinite sleep on Windows or raising an IOError on
Linux for example, to have the same behaviour on all platforms.
2011-07-05 22:00:25 +02:00
Victor Stinner
d9fc85db7f
(merge 3.2) Issue #9611 , #9015 : FileIO.read() clamps the length to INT_MAX on Windows.
2011-07-05 11:34:18 +02:00
Victor Stinner
99b9538636
Issue #9642 : Uniformize the tests on the availability of the mbcs codec
...
Add a new HAVE_MBCS define.
2011-07-04 14:23:54 +02:00
Victor Stinner
9122fdd8fa
Issue #9642 : Fix the definition of time.clock() on Windows
...
Don't unset and set againt the HAVE_CLOCK define, reorder the #if tests
instead. Fix also the definition of the timezone encoding.
2011-07-04 13:55:40 +02:00
Victor Stinner
48b1ce5519
Issue #12462 : time.sleep() now calls immediatly the (Python) signal handler if
...
it is interrupted by a signal, instead of having to wait until the next
instruction.
Patch reviewed by Antoine Pitrou.
2011-07-01 13:50:09 +02:00
Giampaolo Rodola'
210e7ca032
Issue #12442 : add shutil.disk_usage()
2011-07-01 13:55:36 +02:00
Victor Stinner
0aafa4f1e2
faulthandler: add missing include, pthread.h, for FreeBSD 6
2011-06-29 23:28:02 +02:00
Benjamin Peterson
dd6098b8a1
merge 3.2
2011-06-27 09:16:40 -05:00
Senthil Kumaran
7d80bd1909
Fix closes issue 11568 - update select.epoll.register docstring with mention of correct behavior.
2011-06-26 23:48:23 -07:00
Ross Lagerwall
bc808224b6
Issue #12303 : Add sigwaitinfo() and sigtimedwait() to the signal module.
2011-06-25 12:13:40 +02:00
Ross Lagerwall
1db37f3248
Merge with 3.2 (Issue #12404 ).
2011-06-25 10:11:44 +02:00
Ross Lagerwall
dbfb9b89db
Issue 12404: Remove C89 incompatible code from mmap module.
...
Patch by Akira Kitada.
2011-06-25 10:02:37 +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
Victor Stinner
6ee7a57b38
(Merge 3.2) posixmodule.c: fix function name in argument parsing
...
Fix os.fchown() and os.open()
Remove also trailing spaces and replace tabs by spaces.
2011-06-17 15:18:16 +02:00
Victor Stinner
26de69dff8
posixmodule.c: fix function name in argument parsing
...
Fix os.fchown() and os.open()
Remove also trailing spaces and replace tabs by spaces.
2011-06-17 15:15:38 +02:00
Brian Curtin
4ff1a414f8
Merge 3.2 - update to the fix for #12084
2011-06-14 10:06:41 -05:00
Brian Curtin
c8be84077b
Correct completely broken os.stat behavior on Windows XP.
...
After 1a3e8db28d49, Windows XP could not os.stat at all due to raising
immediately when GetFinalPathNameByHandle wasn't available (pre-Vista).
The proper behavior in that situation is to just not attempt a traversal
rather than outright rejecting.
This change additionally handles a failed malloc by setting the error code
and returning false.
Patch by Hirokazu Yamamoto.
2011-06-14 09:52:50 -05:00
Brian Curtin
a87d586fd6
branch merge?
2011-06-13 16:10:32 -05:00
Brian Curtin
c9d6a501db
branch merge
2011-06-13 16:03:01 -05:00
Brian Curtin
3e86c99f90
Merge from 3.2 for Issue #12084 .
2011-06-13 16:00:35 -05:00
Brian Curtin
d25aef55c8
Fix #12084 . os.stat on Windows wasn't working properly with relative symlinks.
...
Use of DeviceIoControl to obtain the symlink path via the reparse tag was
removed. The code now uses GetFinalPathNameByHandle in the case of a
symbolic link and works properly given the added test which creates a symbolic
link and calls os.stat on it from multiple locations.
Victor Stinner also noticed an issue with os.lstat following the os.stat
code path when being passed bytes. The posix_lstat function was adjusted to
properly hook up win32_lstat instead of the previous STAT macro (win32_stat).
2011-06-13 15:16:04 -05:00
Charles-François Natali
a529308348
Issue #12287 : In ossaudiodev, check that the device isn't closed in several
...
methods.
2011-06-11 18:58:24 +02:00
Ross Lagerwall
b0ae53d8a0
Issue #9344 : Add os.getgrouplist().
2011-06-10 07:30:30 +02:00
Victor Stinner
10c30d6764
Issue #8407 : signal.sigwait() releases the GIL
...
Initial patch by Charles-François Natali.
2011-06-10 01:39:53 +02:00
Brian Curtin
d9463b233c
Merge 3.2
2011-06-09 09:46:21 -05:00
Brian Curtin
95d028fd18
Correction to 88e318166eaf - Issue #11583
...
Rather than wrapping the C _isdir function in a Python function,
just import the C _isdir function directly. Additionally, add in the
docstring which was left out.
2011-06-09 09:10:38 -05:00
Brian Curtin
9a82eaade3
Fix #11583 . Changed os.path.isdir to use GetFileAttributes instead of os.stat.
...
By changing to the Windows GetFileAttributes API in nt._isdir we can figure
out if the path is a directory without opening the file via os.stat. This has
the minor benefit of speeding up os.path.isdir by at least 2x for regular
files and 10-15x improvements were seen on symbolic links (which opened the
file multiple times during os.stat). Since os.path.isdir is used in
several places on interpreter startup, we get a minor speedup in startup time.
2011-06-08 18:43:57 -05:00
Brian Curtin
9c669ccc77
Fix #11583 . Changed os.path.isdir to use GetFileAttributes instead of os.stat.
...
By changing to the Windows GetFileAttributes API in nt._isdir we can figure
out if the path is a directory without opening the file via os.stat. This has
the minor benefit of speeding up os.path.isdir by at least 2x for regular
files and 10-15x improvements were seen on symbolic links (which opened the
file multiple times during os.stat). Since os.path.isdir is used in
several places on interpreter startup, we get a minor speedup in startup time.
2011-06-08 18:17:18 -05:00
Charles-François Natali
4dd453c6aa
Issue #12021 : Make mmap's read() method argument optional. Patch by Petri
...
Lehtinen.
2011-06-08 19:18:14 +02:00
Antoine Pitrou
dd69649660
Issue #9205 : concurrent.futures.ProcessPoolExecutor now detects killed
...
children and raises BrokenProcessPool in such a situation. Previously it
would reliably freeze/deadlock.
2011-06-08 17:21:55 +02:00
Brett Cannon
4a5e5de03f
Revert a reversed comparison order introduced in r70695.
2011-06-07 20:09:32 -07:00
Brett Cannon
eb175c473d
Remove a redundant assignment.
...
Found by LLVM/clang 2.9.
2011-06-06 20:24:11 -07:00
Brett Cannon
5fac8af22c
Checking if an unsigned long is < 0 is pointless.
...
Found by LLVM/clang 2.9.
2011-06-06 20:22:56 -07:00
Brett Cannon
a0b1ff5844
Remove some extraneous parentheses and swap the comparison order to
...
prevent accidental assignment.
Silences a warning from LLVM/clang 2.9.
2011-06-06 20:20:36 -07:00
Charles-François Natali
368f34bb4b
Issue #12196 : Make os.pipe2() flags argument mandatory.
2011-06-06 19:49:47 +02:00
Benjamin Peterson
f0cdbad1b3
always clear parser error
2011-06-05 22:14:05 -05:00
Gregory P. Smith
d64b2bae9b
merge heads.
2011-06-04 23:05:19 -07:00
Benjamin Peterson
f719957d7a
only clear the parser error if it's set ( closes #12264 )
2011-06-04 22:06:42 -05:00
Victor Stinner
2bc6c2ec2f
(Merge 3.2) Issue #12016 : Reindent decoders of HK and JP codecs
2011-06-03 23:34:32 +02:00
Victor Stinner
5dfe3bb2d9
Issue #12016 : Reindent decoders of HK and JP codecs
2011-06-03 23:34:09 +02:00
Éric Araujo
5397c797f4
Merge 3.2
2011-06-01 19:47:24 +02:00
Éric Araujo
affcf2967f
Branch merge
2011-06-01 19:39:27 +02:00
Benjamin Peterson
fdb2d909a4
merge 3.1
2011-05-31 21:38:49 -05:00
Benjamin Peterson
52e61449e3
return NULL on error
2011-05-31 21:38:15 -05:00
Benjamin Peterson
f17101a307
merge 3.2
2011-05-31 21:31:59 -05:00
Benjamin Peterson
5c2b09e856
be extra careful with a borrowed reference when the GIL could be released ( closes #8578 )
2011-05-31 21:31:37 -05:00
Benjamin Peterson
8c6f88efa2
remove __version__s dependent on subversion keyword expansion ( closes #12221 )
2011-05-31 20:52:17 -05:00
Benjamin Peterson
9e3e1c6e4e
merge 3.2 ( #12221 )
2011-05-31 19:07:45 -05:00
Benjamin Peterson
0aa71f7982
merge 3.1 ( #12221 )
2011-05-31 19:06:17 -05:00
Benjamin Peterson
a22c98de85
simply use the Python version for pyexpat.__version__ #12221
2011-05-31 18:59:49 -05:00
Victor Stinner
bc93a116eb
Close #12229 : Remove an unused argument of _bufferedreader_peek_unlocked(),
...
io.BufferedReader._peek_unlocked(). Patch written by John O'Connor.
2011-06-01 00:01:24 +02:00
Éric Araujo
9bcf8bfb24
Fix error message to use the Python name instead of the C name
2011-05-31 14:08:26 +02:00
Victor Stinner
e15dce3d18
Close #12171 : IncrementalEncoder.reset() of CJK codecs (multibytecodec) calls
...
encreset() instead of decreset().
2011-05-30 22:56:00 +02:00
Charles-François Natali
daafdd5bea
Issue #12196 : Add pipe2() to the os module.
2011-05-29 20:07:40 +02:00
Victor Stinner
5572ba7e15
_posixsubprocess.c: don't redefine _GNU_SOURCE if it's already defined
2011-05-26 14:10:08 +02:00
Victor Stinner
77af172914
socket.sendto(): exit directly after setting the error
...
Dummy change to avoid a false positive with the Clang Static Analyzer.
2011-05-26 14:05:59 +02:00
Victor Stinner
9a2261a372
zipimport: initialize fullpath to NULL
...
In some cases, fullpath value is used whereas fullpath was not always
initialized. Warning found by the Clang Static Analyzer.
2011-05-26 13:59:41 +02:00
Victor Stinner
25095b2be6
Remove useless assignments
...
Warnings found by the the Clang Static Analyzer.
2011-05-26 13:47:08 +02:00
Stefan Krah
f2c6db5fac
Issue #12090 : backport 79fcd71d0356
2011-05-26 00:37:45 +02:00
Victor Stinner
b57f108b03
Issue #12175 : BufferedReader.read(-1) now calls raw.readall() if available.
2011-05-26 00:19:38 +02:00
Victor Stinner
e9d44ccb22
Issue #12175 : FileIO.readall() now only reads the file position and size once.
2011-05-26 00:16:44 +02:00
Victor Stinner
d2780aedce
(Merge 3.2) Issue #12175 : RawIOBase.readall() now returns None if read()
...
returns None.
2011-05-25 22:51:16 +02:00
Victor Stinner
988512cfd7
(Merge 3.1) Issue #12175 : RawIOBase.readall() now returns None if read()
...
returns None.
2011-05-25 22:49:15 +02:00
Victor Stinner
a80987f20d
Issue #12175 : RawIOBase.readall() now returns None if read() returns None.
2011-05-25 22:47:16 +02:00
Victor Stinner
af62c7d3de
(Merge 3.2) Issue #12175 : FileIO.readall() now raises a ValueError instead of
...
an IOError if the file is closed.
2011-05-25 22:13:47 +02:00
Victor Stinner
4767114e77
(Merge 3.1) Issue #12175 : FileIO.readall() now raises a ValueError instead of
...
an IOError if the file is closed.
2011-05-25 22:11:55 +02:00
Victor Stinner
b79f28ccbd
Issue #12175 : FileIO.readall() now raises a ValueError instead of an IOError if
...
the file is closed.
2011-05-25 22:09:03 +02:00
Victor Stinner
fd8211372d
Fast path for IncrementalNewlineDecoder.decode() in io.TextIOWrapper.read(-1)
...
Copy/paste code from textiowrapper_read_chunk().
2011-05-25 22:01:33 +02:00
Victor Stinner
c13ef66649
Issue #8407 : Fix the signal handler of the signal module: if it is called
...
twice, it now writes the number of the second signal into the wakeup fd.
2011-05-25 02:35:58 +02:00
Victor Stinner
eb734f77ad
(Merge 3.2) 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:24:11 +02:00
Victor Stinner
d48ba0bde5
(Merge 3.1) 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:22:17 +02:00
Victor Stinner
6bcbef7da0
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:17:55 +02:00
Victor Stinner
99c8b16143
Issue #12049 : Add RAND_bytes() and RAND_pseudo_bytes() functions to the ssl
...
module.
2011-05-24 12:05:19 +02:00
Victor Stinner
7870bdff5a
Issue #6501 : os.device_encoding() returns None on Windows if the application
...
has no console.
2011-05-23 18:12:52 +02:00
Victor Stinner
9b49304790
Close #12153 : faulthandler, mark stack_overflow() as static
2011-05-23 12:29:10 +02:00
Gregory P. Smith
b6471db8a7
Further documentation updates to be consistent with doc standards and comments
...
Ezio Melotti pointed out.
2011-05-22 22:47:55 -07:00
Charles-François Natali
1e045b1831
Issue #12105 : Add O_CLOEXEC to the os module.
2011-05-22 20:42:32 +02:00
Gregory P. Smith
95c7c46077
avoid a compiler warning. the compiler doesn't know that the static
...
struct guarantees the loop will always be run once to initialize code.
2011-05-21 05:19:42 -07:00
Charles-François Natali
6071359de1
Issue #1746656 : make if_nameindex(), if_indextoname() and if_nametoindex()
...
accept and return str instead of bytes arrays. Add some more tests.
2011-05-20 16:55:06 +02:00
Victor Stinner
21809a6938
(Merge 3.2) Issue #12124 : zipimport doesn't keep a reference to
...
zlib.decompress() anymore to be able to unload the module.
2011-05-20 00:22:39 +02:00
Victor Stinner
4445ec81c1
(Merge 3.1) Issue #12124 : zipimport doesn't keep a reference to
...
zlib.decompress() anymore to be able to unload the module.
2011-05-20 00:18:58 +02:00
Victor Stinner
4925cde1cc
Issue #12124 : zipimport doesn't keep a reference to zlib.decompress() anymore
...
to be able to unload the module.
2011-05-20 00:16:09 +02:00
Gregory P. Smith
3b1f2c35f4
issue #1746656 : Fix for OS X. configure and #include changes so that the socket
...
module compiles again on OS X with its more annoying #include requirements.
2011-05-15 12:18:23 -07:00
Victor Stinner
d0e11ec5b0
Issue #10756 : atexit normalizes the exception before displaying it. Patch by
...
Andreas Stührk.
Backport a fix already applied to Python 3.2+ (4a82be47a948 + 5060a92a8597).
2011-05-15 18:57:44 +02:00
Nadeem Vawda
d74b5936a1
Fix _socket compilation failures on non-Linux buildbots (cf. issue #1746656 ).
2011-05-15 13:16:22 +02:00
Victor Stinner
aedb2823fd
(Merge 3.2) Issue #12060 : Use sig_atomic_t type and volatile keyword in the
...
signal module. Patch written by Charles-François Natali.
2011-05-15 10:27:49 +02:00
Victor Stinner
5ebfe6d9a9
(Merge 3.1) Issue #12060 : Use sig_atomic_t type and volatile keyword in the
...
signal module. Patch written by Charles-François Natali.
2011-05-15 10:27:09 +02:00
Victor Stinner
2ec6b176bd
Issue #12060 : Use sig_atomic_t type and volatile keyword in the signal module.
...
Patch written by Charles-François Natali.
2011-05-15 10:21:59 +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
Nadeem Vawda
ccb33bf002
Merge: #8650 : Make zlib.[de]compressobj().[de]compress() 64-bit clean.
...
Raise an OverflowError if the input data is too large, instead of silently
truncating the input and returning an incorrect result.
2011-05-15 00:23:40 +02:00
Nadeem Vawda
565d659dcd
Merge: #8650 : Make zlib.[de]compressobj().[de]compress() 64-bit clean.
...
Raise an OverflowError if the input data is too large, instead of silently
truncating the input and returning an incorrect result.
2011-05-15 00:20:52 +02:00
Nadeem Vawda
0c3d96ae1d
Issue #8650 : Make zlib.[de]compressobj().[de]compress() 64-bit clean.
...
Raise an OverflowError if the input data is too large, instead of silently
truncating the input and returning an incorrect result.
2011-05-15 00:19:50 +02:00
Nadeem Vawda
905cca011b
Merge fix for memory leaks in zlib.compress() and .decompress().
...
Also, make sure that test_zlib tests decompress() for overly-large inputs.
2011-05-14 23:18:07 +02:00
Nadeem Vawda
154bdf92fc
Fix memory leaks in zlib.compress() and .decompress().
...
Also, make sure that test_zlib tests decompress() for overly-large inputs.
2011-05-14 23:07:36 +02:00
Nadeem Vawda
1b8a417d9f
Issue #8650 : Backport 64-bit safety fixes for compress() and decompress().
2011-05-14 22:26:55 +02:00
Nadeem Vawda
9c405c470b
Merge: #12050 : zlib.decompressobj().decompress() now clears the unconsumed_tail
...
attribute when called without a max_length argument.
2011-05-14 14:19:56 +02:00
Nadeem Vawda
5eef502de0
Merge: #12050 : zlib.decompressobj().decompress() now clears the unconsumed_tail
...
attribute when called without a max_length argument.
2011-05-14 14:15:47 +02:00
Nadeem Vawda
7619e88adb
Issue #12050 : zlib.decompressobj().decompress() now clears the unconsumed_tail
...
attribute when called without a max_length argument.
2011-05-14 14:05:20 +02:00
Antoine Pitrou
b89b31a158
Issue #12062 : Fix a flushing bug when doing a certain type of I/O sequence
...
on a file opened in read+write mode (namely: reading, seeking a bit forward,
writing, then seeking before the previous write but still within buffered
data, and writing again).
2011-05-13 00:25:53 +02:00
Antoine Pitrou
00dd182b8e
Issue #12062 : Fix a flushing bug when doing a certain type of I/O sequence
...
on a file opened in read+write mode (namely: reading, seeking a bit forward,
writing, then seeking before the previous write but still within buffered
data, and writing again).
2011-05-13 00:16:28 +02:00
Antoine Pitrou
7c40489180
Issue #12062 : Fix a flushing bug when doing a certain type of I/O sequence
...
on a file opened in read+write mode (namely: reading, seeking a bit forward,
writing, then seeking before the previous write but still within buffered
data, and writing again).
2011-05-13 00:13:33 +02:00
Antoine Pitrou
4e19e11958
Fix compile error under Windows
2011-05-12 02:07:00 +02:00
Antoine Pitrou
3486a98dcd
Issue #9971 : Write an optimized implementation of BufferedReader.readinto().
...
Patch by John O'Connor.
2011-05-12 01:57:53 +02:00
Victor Stinner
410dd7d357
Issue #12058 : Minor edits to comments in faulthandler
...
Patch written by Éric Araujo.
2011-05-11 20:56:08 +02:00
Kurt B. Kaiser
9dd41fa970
Merge from 3.2
2011-05-11 14:18:13 -04:00
Kurt B. Kaiser
bc3e13818b
Merge from 3.1
2011-05-11 13:48:54 -04:00
Kurt B. Kaiser
e147806da9
Issue #1028 : Tk returns invalid Unicode null in %A: UnicodeDecodeError.
...
With Tk < 8.5 _tkinter.c:PythonCmd() raised UnicodeDecodeError, caused IDLE to
exit. Converted to valid Unicode null in PythonCmd().
2011-05-11 12:24:17 -04:00
Ezio Melotti
f8d6fd605d
#12051 : merge with 3.2.
2011-05-11 01:23:41 +03:00
Ezio Melotti
f188bc5d46
#12051 : merge with 3.1.
2011-05-11 01:10:27 +03:00
Ezio Melotti
136726537f
#12051 : Fix segfault in json.dumps() while encoding highly-nested objects using the C accelerations.
2011-05-11 01:02:56 +03: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
Victor Stinner
00bc6ccb78
faulthandler: improve_sigabrt() on Visual Studio
...
Use _set_abort_behavior() + abort() instead of raise(SIGABRT) which may write
an error message and/or open a popup asking to report the fault.
2011-05-10 01:30:03 +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
Antoine Pitrou
2341f9ba00
Remove dead code from _multiprocessing
2011-05-09 20:55:03 +02:00
Antoine Pitrou
87cf220972
Issue #11743 : Rewrite multiprocessing connection classes in pure Python.
2011-05-09 17:04:27 +02:00
Victor Stinner
86e104a6ab
Issue #8407 : Use an explicit cast for FreeBSD
...
pthread_t is a pointer, not an integer, on FreeBSD. It should fix the following
gcc warning:
passing argument 1 of ‘pthread_kill’ makes pointer from integer without a cast
2011-05-09 14:45:38 +02:00
Victor Stinner
e0c9a7533c
faulthandler: make quiet a gcc 4.6 warning (z was unused)
2011-05-09 14:44:26 +02:00
Victor Stinner
8f9f8d612a
Issue #11888 : Use system log2() when available
...
I expect the system libc to use more accurate functions than Python. The GNU
libc uses for example FYL2X and FYL2XP1 hardware instructions on Intel FPU.
2011-05-09 12:45:41 +02:00
Gerhard Haering
936d518dc8
#10811 : Fix recursive usage of cursors. Instead of crashing, raise a ProgrammingError now.
2011-05-09 12:24:09 +02:00
Mark Dickinson
83b8c0be93
Grammatical fix for a comment for log2, to avoid referring to an *algorithm* as monotonic.
2011-05-09 08:40:20 +01:00
Mark Dickinson
23442584f4
Fix cut-and-paste typo in comment: log10 -> log2.
2011-05-09 08:05:00 +01: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
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
Ezio Melotti
9c18778695
#12017 : merge with 3.2.
2011-05-07 18:29:14 +03:00
Ezio Melotti
06383ee090
#12017 : merge with 3.1.
2011-05-07 18:15:34 +03:00
Ezio Melotti
362b95102f
#12017 : Fix segfault in json.loads() while decoding highly-nested objects using the C accelerations.
2011-05-07 17:58:09 +03: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
Victor Stinner
c925617b54
faulthandler: save/restore errno in the two signal handlers
2011-05-07 12:20:11 +02:00
Ronald Oussoren
97c3eb4ed5
Closes Issue 11916: Add a number of MacOSX specific definitions to the errno module.
...
Patch by Pierre Carrier.
2011-05-07 09:59:03 +02: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
Victor Stinner
d0e516db50
Issue #8407 : pthread_sigmask() checks immediatly if signal handlers have been
...
called. The test checks that SIG_UNBLOCK calls immediatly the signal handler of
the pending SIGUSR1. Improve also the tests using an exception (division by
zero) instead of a flag (a function attribute).
2011-05-03 14:57:12 +02:00
Alexander Belopolsky
66746cb222
Removed unused variable
2011-05-02 13:44:20 -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
09a98a99cd
merge
2011-05-02 12:31:17 -04:00
Alexander Belopolsky
03163ac185
Issue #11930 : Remove deprecated time.accept2dyear.
2011-05-02 12:20:52 -04:00
Victor Stinner
72c53b5dcc
cleanup signalmodule.c: use PyModule_AddIntMacro()
2011-05-02 16:15:43 +02: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
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
Antoine Pitrou
9ea1c8d7d7
Issue #10517 : After fork(), reinitialize the TLS used by the PyGILState_*
...
APIs, to avoid a crash with the pthread implementation in RHEL 5. Patch
by Charles-François Natali.
2011-04-27 19:30:16 +02:00
Antoine Pitrou
0c759febb6
Issue #10517 : After fork(), reinitialize the TLS used by the PyGILState_*
...
APIs, to avoid a crash with the pthread implementation in RHEL 5. Patch
by Charles-François Natali.
2011-04-27 19:28:05 +02:00
Victor Stinner
66299a49f0
Fix compilation of _testembed.c without threads
2011-04-26 23:37:02 +02: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
eec60603a8
Issue #10914 : Add a minimal embedding test to test_capi.
2011-04-25 21:23:26 +02:00
Antoine Pitrou
8e60577693
Issue #10914 : Add a minimal embedding test to test_capi.
2011-04-25 21:21:07 +02:00
Antoine Pitrou
f645451d78
Issue #11856 : Speed up parsing of JSON numbers.
2011-04-25 19:16:06 +02:00
Victor Stinner
c2824d41c3
Issue #11915 : threading.RLock()._release_save() raises a RuntimeError if the
...
lock was not acquired.
2011-04-24 23:41:33 +02:00
Antoine Pitrou
877509aef4
Issue #11382 : Trivial system calls, such as dup() or pipe(), needn't
...
release the GIL. Patch by Charles-François Natali.
2011-04-23 17:21:13 +02:00
Victor Stinner
a154b5cea4
Simplify _count_elements() in _collections
...
PyIter_Next() cannot return a PyExc_StopIteration: it clears this exception.
2011-04-20 23:23:52 +02:00
Victor Stinner
754851f456
Issue #11223 : Add threading._info() function providing informations about the
...
thread implementation.
Skip test_lock_acquire_interruption() and test_rlock_acquire_interruption() of
test_threadsignals if a thread lock is implemented using a POSIX mutex and a
POSIX condition variable. A POSIX condition variable cannot be interrupted by a
signal (e.g. on Linux, the futex system call is restarted).
2011-04-19 23:58:51 +02:00
Victor Stinner
cf2a807831
faulthandler: don't use sigprocmask()
...
It has an undefined behaviour with threads, only use pthread_sigmask() if
it is available (and not broken).
2011-04-19 23:30:57 +02:00
Giampaolo Rodola'
ff1a73590d
os.sendfile(): on Linux if offset parameter is passed as NULL we were erroneously returning a (bytes_sent, None) tuple instead of bytes_sent
2011-04-19 09:47:16 +02:00
Victor Stinner
ce16be91dc
(Merge 3.2) Issue #11768 : The signal handler of the signal module only calls
...
Py_AddPendingCall() for the first signal to fix a deadlock on reentrant or
parallel calls. PyErr_SetInterrupt() writes also into the wake up file.
2011-04-18 16:30:17 +02:00
Victor Stinner
27026f87d8
(Merge 3.1) Issue #11768 : The signal handler of the signal module only calls
...
Py_AddPendingCall() for the first signal to fix a deadlock on reentrant or
parallel calls. PyErr_SetInterrupt() writes also into the wake up file.
2011-04-18 16:28:39 +02:00
Victor Stinner
6c9b35bfe2
Issue #11768 : The signal handler of the signal module only calls
...
Py_AddPendingCall() for the first signal to fix a deadlock on reentrant or
parallel calls. PyErr_SetInterrupt() writes also into the wake up file.
2011-04-18 16:25:56 +02:00
Nadeem Vawda
ea4b46f9a9
Fix 64-bit safety issue in BZ2Compressor and BZ2Decompressor.
2011-04-12 23:02:42 +02:00
Ezio Melotti
d60b74cb66
Merge with 3.2.
2011-04-11 03:51:14 +03:00
Ezio Melotti
fdb2df49bd
Remove unnecessary call to PyErr_Clear.
2011-04-11 03:48:57 +03:00
Antoine Pitrou
131a6414dd
Issue #11757 : select.select() now raises ValueError when a negative timeout
...
is passed (previously, a select.error with EINVAL would be raised). Patch
by Charles-François Natali.
2011-04-09 23:49:58 +02:00
Raymond Hettinger
a56328680d
Fix nit (make spelling consistent in prototype)
2011-04-09 12:57:00 -07:00
Victor Stinner
a4de6d885f
Improve faulthandler.enable(all_threads=True)
...
faulthandler.enable(all_threads=True) dumps the tracebacks even if it is not
possible to get the state of the current thread
Create also the get_thread_state() subfunction to factorize the code.
2011-04-09 00:47:23 +02:00
Victor Stinner
c790a5346d
faulthandler: dump_tracebacks_later() displays also the timeout
2011-04-08 13:39:59 +02:00
Victor Stinner
941893291a
faulthandler: fix variable name, timeout_ms => timeout_us
...
The comment was already correct.
2011-04-08 13:00:31 +02:00
Victor Stinner
de10f4054b
faulthandler: one more time, fix usage of locks in the watchdog thread
...
* Write a new test to ensure that dump_tracebacks_later() still works if
it was already called and then cancelled before
* Don't use a variable to check the status of the thread, only rely on locks
* The thread only releases cancel_event if it was able to acquire it (if
the timer was interrupted)
* The main thread always hold this lock. It is only released when
faulthandler_thread() is interrupted until this thread exits, or at Python
exit.
2011-04-08 12:57:06 +02:00
Victor Stinner
cfa7123ef1
faulthandler: fix unregister() if it is called before register()
...
Fix a crash: don't read from NULL.
2011-04-08 12:48:15 +02:00
Victor Stinner
ff4cd88266
faulthandler: fix compilating without threads
2011-04-07 11:50:25 +02:00
Victor Stinner
44e31baf95
faulthandler: we don't use (or need) SA_SIGINFO flag of sigaction()
2011-04-07 11:39:03 +02:00
Victor Stinner
9699440b57
faulthandler: check PyThreadState_Get() result in dump_tracebacks_later()
...
Cleanup also the code
2011-04-07 11:37:19 +02:00
Senthil Kumaran
736975a771
merge from 3.2
2011-04-06 14:16:08 +08:00
Senthil Kumaran
ae664fb528
Merge from 3.1
2011-04-06 14:11:09 +08:00
Senthil Kumaran
8f377a3bbe
Issue #10762 : Guard against invalid/non-supported format string '%f' on Windows. Patch Santoso Wijaya.
2011-04-06 12:54:06 +08:00
Alexander Belopolsky
28deea1fa5
Issue #11576 : Fixed timedelta subtraction glitch on big timedelta values
2011-04-05 20:43:15 -04:00
Alexander Belopolsky
b6f5ec7370
Issue #11576 : Fixed timedelta subtraction glitch on big timedelta values
2011-04-05 20:07:38 -04:00
Benjamin Peterson
3bd9729dc9
implement tp_clear
2011-04-05 17:25:14 -05:00
Victor Stinner
446c8d59c5
Issue #11707 : Fix compilation errors with Visual Studio
...
Fix also a compiler (gcc) warning.
2011-04-05 12:21:35 +02:00
Raymond Hettinger
7ab9e22e34
Issue #11707 : Fast C version of functools.cmp_to_key()
2011-04-05 02:33:54 -07:00
Victor Stinner
7f2fee3640
Issue #10785 : Store the filename as Unicode in the Python parser.
2011-04-05 00:39:01 +02:00
Victor Stinner
da9edae1f4
Issue #11753 : faulthandler thread uses pthread_sigmask()
...
The thread must not receive any signal. If the thread receives a signal,
sem_timedwait() is interrupted and returns EINTR, but in this case,
PyThread_acquire_lock_timed() retries sem_timedwait() and the main thread is
not aware of the signal. The problem is that some tests expect that the main
thread receives the signal, not faulthandler handler, which should be
invisible.
On Linux, the signal looks to be received by the main thread, whereas on
FreeBSD, it can be any thread.
2011-04-04 11:05:21 +02:00
Antoine Pitrou
5bfa0622ec
Issue #11688 : Add sqlite3.Connection.set_trace_callback(). Patch by Torsten Landschoff.
2011-04-04 00:12:04 +02:00
Antoine Pitrou
a7caec74aa
Merge fix for issue #11746
2011-04-03 18:16:50 +02:00
Antoine Pitrou
9c25486093
Issue #11746 : Fix SSLContext.load_cert_chain() to accept elliptic curve private keys.
2011-04-03 18:15:34 +02:00
Antoine Pitrou
37dc5f85b8
Issue #5863 : Rewrite BZ2File in pure Python, and allow it to accept
...
file-like objects using a new `fileobj` constructor argument. Patch by
Nadeem Vawda.
2011-04-03 17:05:46 +02:00
Victor Stinner
44378d46f6
Issue #11393 : signal of user signal displays tracebacks even if tstate==NULL
...
* faulthandler_user() displays the tracebacks of all threads even if it is
unable to get the state of the current thread
* test_faulthandler: only release the GIL in test_gil_released() check
* create check_signum() subfunction
2011-04-01 15:37:12 +02:00
Victor Stinner
a01ca12a52
Issue #11393 : Fix faulthandler.disable() and add a test
2011-04-01 12:56:17 +02:00
Victor Stinner
d727e23243
Issue #11393 : The fault handler handles also SIGABRT
2011-04-01 12:13:55 +02:00
Victor Stinner
bc6a4db66d
Issue #11393 : fault handler uses raise(signum) for SIGILL on Windows
2011-04-01 12:08:57 +02:00
Victor Stinner
f309134eff
Issue #11393 : fix usage of locks in faulthandler
...
* faulthandler_cancel_dump_tracebacks_later() is responsible to set running
to zero (so we don't need the volatile keyword anymore)
* release locks if PyThread_start_new_thread() fails
assert(thread.running == 0) was wrong in a corner case
2011-04-01 03:16:51 +02:00
Victor Stinner
a4d4f1b4cb
Issue #11393 : New try to fix faulthandler_thread()
...
Always release the cancel join.
Fix also another corner case: _PyFaulthandler_Fini() called after setting
running variable to zero, but before releasing the join lock.
2011-04-01 03:00:05 +02:00
Victor Stinner
1c76b7f5e5
Issue #11393 : Fix faulthandler_thread(): release cancel lock before join lock
...
If the thread releases the join lock before the cancel lock, the thread may
sometimes still be alive at cancel_dump_tracebacks_later() exit. So the cancel
lock may be destroyed while the thread is still alive, whereas the thread will
try to release the cancel lock, which just crash.
Another minor fix: the thread doesn't release the cancel lock if it didn't
acquire it.
2011-04-01 02:28:22 +02:00
Victor Stinner
f048075079
Issue #11393 : limit stack overflow test to 100 MB
...
Stop if the stack overflow doesn't occur after allocating 100 MB on the stack.
2011-03-31 11:34:08 +02:00
Victor Stinner
702624ecf7
Issue #11393 : Fix the documentation (cancel_dump_traceback_later)
...
* dump_traceback_later() => dump_tracebacks_later()
* cancel_dump_traceback_later() => cancel_dump_tracebacks_later()
2011-03-31 03:42:34 +02:00
Victor Stinner
024e37adcc
Issue #11393 : Add the new faulthandler module
2011-03-31 01:31:06 +02:00
Kristjan Valur Jonsson
8c5b748026
Merge
2011-03-30 11:55:52 +00:00
Kristjan Valur Jonsson
d05595697d
Merge 3.1
2011-03-30 11:54:13 +00:00
Kristjan Valur Jonsson
3c136e19b9
Merge
2011-03-30 11:39:24 +00:00
Kristjan Valur Jonsson
978da33c7a
Merge 3.2
2011-03-30 11:32:06 +00:00
Kristjan Valur Jonsson
fa3edbed25
Merge 3.1
2011-03-30 11:24:58 +00:00
Kristjan Valur Jonsson
35722a9376
Bugfix: Properly test for errors from PyLong_AsLong() in itertools.cycle.
...
ti can raise an exception even if PyLong_Check() has
succeeded.
2011-03-30 11:04:28 +00:00
Raymond Hettinger
010a948489
Issue 11713: clarify docstring for collections.deque()
2011-03-29 17:38:15 -07:00
Raymond Hettinger
4974705a02
Issue 11713: clarify docstring for collections.deque()
2011-03-29 17:36:31 -07:00
Raymond Hettinger
d6c1d57195
Issue 11713: clarify docstring for collections.deque()
2011-03-29 17:30:01 -07:00
Benjamin Peterson
fe55783505
merge 3.2
2011-03-28 17:26:04 -05:00
Benjamin Peterson
3077404de4
merge 3.1
2011-03-28 17:25:50 -05:00
Benjamin Peterson
ad45bfe2d3
let's keep parenthesis around sizeof
2011-03-28 17:25:15 -05:00
Raymond Hettinger
5bf7091df0
Update docstrings for itertools.accumulate().
2011-03-27 18:59:51 -07:00
Raymond Hettinger
5d44613e3b
Add optional *func* argument to itertools.accumulate().
2011-03-27 18:52:10 -07:00
Benjamin Peterson
eb2389be0e
merge 3.2
2011-03-26 18:18:09 -05:00
Benjamin Peterson
1a07f07337
merge 3.1
2011-03-26 18:17:05 -05:00
Benjamin Peterson
39530f8cbe
always check return value of PyObject_IsInstance for error
2011-03-26 18:04:09 -05:00
Benjamin Peterson
8d6c62dd89
check possible recursive _as_parameter_ to prevent segfault ( closes #1838 )
2011-03-26 17:56:28 -05:00
Victor Stinner
6ced7c4333
Issue #10833 : Use PyErr_Format() and PyUnicode_FromFormat() instead of
...
PyOS_snprintf() to avoid temporary buffer allocated on the stack and a
conversion from bytes to Unicode.
2011-03-21 18:15:42 +01:00
Victor Stinner
499dfcf29d
Issue #10833 : Use PyUnicode_FromFormat() and PyErr_Format() instead of
...
PyOS_snprintf().
2011-03-21 13:26:24 +01:00
Victor Stinner
bfc7bf06a6
_elementtree.c: remove trailing spaces
2011-03-21 13:23:42 +01:00
Victor Stinner
161fbeae72
merge 3.2
2011-03-21 02:15:18 +01:00
Victor Stinner
6f0e4f99ab
time.strftime(): replace PyErr_Format() by PyErr_SetString()
...
The argument was not used in the format string.
2011-03-21 02:14:53 +01:00
Victor Stinner
b938bcd211
(merge) Issue #11395 : io.FileIO().write() clamps the data length to 32,767
...
bytes on Windows if the file is a TTY to workaround a Windows bug. The Windows
console returns an error (12: not enough space error) on writing into stdout if
stdout mode is binary and the length is greater than 66,000 bytes (or less,
depending on heap usage).
2011-03-20 23:37:55 +01:00
Victor Stinner
e0daff1c61
Issue #11395 : io.FileIO().write() clamps the data length to 32,767 bytes on
...
Windows if the file is a TTY to workaround a Windows bug. The Windows console
returns an error (12: not enough space error) on writing into stdout if
stdout mode is binary and the length is greater than 66,000 bytes (or less,
depending on heap usage).
2011-03-20 23:36:35 +01:00
Antoine Pitrou
bb6eb857cf
Issue #10914 : fix bogus memory management in Modules/getpath.c, leading to a possible crash when calling Py_SetPath()
2011-03-17 23:34:33 +01:00
Antoine Pitrou
9befeb3743
Issue #5421 : merge fix
2011-03-17 22:40:18 +01:00
Antoine Pitrou
5e98141f9f
Issue #5421 : Fix misleading error message when one of socket.sendto()'s
...
arguments has the wrong type. Patch by Nikita Vetoshkin.
2011-03-17 22:38:37 +01:00
Ezio Melotti
2e8a07c21d
Merge with 3.1.
2011-03-16 12:51:44 +02:00
Ezio Melotti
9465d424ec
Revert typo fixes in zlib/*
2011-03-16 12:48:54 +02:00
Ezio Melotti
3b3499ba69
#11565 : Merge with 3.1.
2011-03-16 11:35:38 +02:00
Ezio Melotti
13925008dc
#11565 : Fix several typos. Patch by Piotr Kasprzyk.
2011-03-16 11:05:33 +02:00
Gregory P. Smith
9c4f44f70a
Fix issue #11432 . if the stdin pipe is the same file descriptor as either stdout or stderr
...
in the _posixsubprocess C extension module it would unintentionally close the fds and raise
an error.
2011-03-15 14:56:39 -04:00
Ezio Melotti
b78b4d7bf5
Merge with 3.2
2011-03-15 19:19:04 +02:00
Ezio Melotti
8beaa6c2ec
Revert typo fixes in _cytpes/libffi*
2011-03-15 19:10:51 +02:00
Ezio Melotti
4969f709cc
#11515 : Merge with 3.1.
2011-03-15 05:59:46 +02:00
Ezio Melotti
42da663e6f
#11515 : fix several typos. Patch by Piotr Kasprzyk.
2011-03-15 05:18:48 +02:00
Antoine Pitrou
35db8a80c1
Merge fix for issue #11450
2011-03-09 12:47:20 +01:00
Antoine Pitrou
7983d33f54
Issue #11450 : Don't truncate hg version info in Py_GetBuildInfo() when
...
there are many tags (e.g. when using mq). Patch by Nadeem Vawda.
2011-03-09 12:34:41 +01:00
Victor Stinner
f6b563af2d
Issue #3080 : zipimport has a full unicode suppport
...
- Use Unicode for module paths and names, self->archive and self->prefix
- Format module names and paths use %R instead of '%U' to escape surrogate
characters (PEP 383)
- Use PyImport_ExecCodeModuleObject() instead of PyImport_ExecCodeModuleEx()
- Use PyImport_AddModuleObject() instead of PyImport_AddModule()
2011-03-14 20:46:50 -04:00
Ross Lagerwall
9ad63e0914
Fix refleak introduced by #10812 .
2011-03-19 09:11:14 +02:00
Ross Lagerwall
4d076da4de
Issue #11592 : Fix compilation warnings in os module.
2011-03-18 06:56:53 +02:00
Antoine Pitrou
6826d2966b
Merge
2011-03-17 23:37:06 +01:00
Antoine Pitrou
fee6684f3c
Issue #5421 : merge fix
2011-03-17 22:46:17 +01:00
Ross Lagerwall
8e74967855
Issue #10812 : Revert os.lseek change.
2011-03-17 21:54:07 +02:00
Ross Lagerwall
7807c3545d
Issue #10812 : Add some extra posix functions to the os module.
2011-03-17 20:20:30 +02:00
Ezio Melotti
e371ad65f3
Merge with 3.2.
2011-03-16 12:52:57 +02:00
Ezio Melotti
b88ed1549e
#11565 : Merge with 3.2.
2011-03-16 11:38:59 +02:00
Gregory P. Smith
6466a5268a
merge update
2011-03-15 15:35:27 -04:00
Gregory P. Smith
8121898ec5
Fix issue #11432 . if the stdin pipe is the same file descriptor as either stdout or stderr
...
in the _posixsubprocess C extension module it would unintentionally close the fds and raise
an error.
2011-03-15 14:56:39 -04:00
Ezio Melotti
3796befe37
Merge with 3.2
2011-03-15 19:21:03 +02:00
Ezio Melotti
373089239b
#11515 : Merge with 3.2.
2011-03-15 06:03:08 +02:00
Jesus Cea
736e7fc0f6
Issue #11495 : OSF support is eliminated. It was deprecated in Python 3.2
2011-03-14 17:36:54 +01:00
Antoine Pitrou
16c4ce1903
Issue #9935 : Speed up pickling of instances of user-defined classes.
2011-03-11 21:30:43 +01:00
Antoine Pitrou
d2dee34a85
Merge fix for issue #11450
2011-03-09 12:53:30 +01:00
Georg Brandl
8a1acf2e34
merge heads
2011-03-06 10:36:06 +01:00
Georg Brandl
776e586114
Remove sys.subversion and svn build identification leftovers.
2011-03-06 10:35:42 +01:00
Georg Brandl
fe09a54280
Merge build identification to default branch.
2011-03-06 10:26:32 +01:00
Georg Brandl
13039c87f1
Merge build identification to 3.2 branch.
2011-03-06 10:13:00 +01:00
Antoine Pitrou
125d5c8770
Issue #11408 : In threading.Lock.acquire(), only call gettimeofday() when
...
really necessary. Patch by Charles-François Natali.
2011-03-06 08:40:35 +01:00
Antoine Pitrou
f874debbf3
Merge fix for issue #11391
2011-03-06 01:53:19 +01:00
Antoine Pitrou
80d3610bc3
Merge fix for issue #11391
2011-03-06 01:50:56 +01:00
Antoine Pitrou
16a0a0b0a0
Issue #11391 : Writing to a mmap object created with
...
`mmap.PROT_READ|mmap.PROT_EXEC` would segfault instead of raising a
TypeError. Patch by Charles-François Natali.
2011-03-06 01:11:03 +01:00
Georg Brandl
1ca2e7965c
Commit the hg build identification patch from the pymigr repo.
2011-03-05 20:51:24 +01:00
Giampaolo Rodolà
acdad9a40b
Issue 11351 - apply patch by Steffen Daode Nurpmeso which should fix TestSendfile.test_headers failure on OSX.
2011-03-03 16:10:51 +00:00
Victor Stinner
f3fd733f92
Remove useless argument of _PyUnicode_AsDefaultEncodedString()
2011-03-02 01:03:11 +00:00
Antoine Pitrou
9e719b6eba
Merged revisions 88460,88464,88466,88486,88511,88652 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r88460 | antoine.pitrou | 2011-02-21 19:03:13 +0100 (lun., 21 févr. 2011) | 4 lines
Issue #10276 : Fix the results of zlib.crc32() and zlib.adler32() on buffers
larger than 4GB. Patch by Nadeem Vawda.
........
r88464 | antoine.pitrou | 2011-02-21 20:05:08 +0100 (lun., 21 févr. 2011) | 3 lines
Fix issues on 32-bit systems introduced by r88460
........
r88466 | antoine.pitrou | 2011-02-21 20:28:40 +0100 (lun., 21 févr. 2011) | 3 lines
Fix compile error under MSVC introduced by r88460.
........
r88486 | antoine.pitrou | 2011-02-22 00:41:12 +0100 (mar., 22 févr. 2011) | 5 lines
Issue #4681 : Allow mmap() to work on file sizes and offsets larger than
4GB, even on 32-bit builds. Initial patch by Ross Lagerwall, adapted for
32-bit Windows.
........
r88511 | antoine.pitrou | 2011-02-22 22:42:56 +0100 (mar., 22 févr. 2011) | 4 lines
Issue #11277 : finally fix Snow Leopard crash following r88460.
(probably an OS-related issue with mmap)
........
r88652 | antoine.pitrou | 2011-02-26 16:58:05 +0100 (sam., 26 févr. 2011) | 4 lines
Issue #9931 : Fix hangs in GUI tests under Windows in certain conditions.
Patch by Hirokazu Yamamoto.
........
2011-02-28 23:48:16 +00:00
Antoine Pitrou
061cfb5258
Issue #10866 : Add socket.sethostname(). Initial patch by Ross Lagerwall.
2011-02-28 22:25:22 +00:00
Antoine Pitrou
fcf81fd031
Issue #11140 : Lock.release() now raises a RuntimeError when attempting
...
to release an unacquired lock, as claimed in the threading documentation.
The _thread.error exception is now an alias of RuntimeError.
2011-02-28 22:03:34 +00:00
Benjamin Peterson
d8a43b4a4b
revert accidental formatting change
2011-02-26 21:35:16 +00:00
Benjamin Peterson
c6696d272f
this isn't true anymore
2011-02-26 21:32:16 +00:00
Antoine Pitrou
dcc20b8563
Check error return from _parse_off_t(), and remove cruft from the 2->3 transition.
2011-02-26 13:38:35 +00:00
Antoine Pitrou
8250e23abd
Issue #10755 : Add the posix.fdlistdir() function. Patch by Ross Lagerwall.
2011-02-25 23:41:16 +00:00
Antoine Pitrou
f65132de3d
Issue #4761 : Add the *at() family of functions (openat(), etc.) to the posix
...
module. Patch by Ross Lagerwall.
2011-02-25 23:25:17 +00:00
Antoine Pitrou
d843c2d86f
Merged revisions 88610 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r88610 | antoine.pitrou | 2011-02-25 22:24:11 +0100 (ven., 25 févr. 2011) | 4 lines
Issue #10956 : Buffered I/O classes retry reading or writing after a signal
has arrived and the handler returned successfully.
........
2011-02-25 21:34:39 +00:00
Antoine Pitrou
707ce82cab
Issue #10956 : Buffered I/O classes retry reading or writing after a signal
...
has arrived and the handler returned successfully.
2011-02-25 21:24:11 +00:00
Giampaolo Rodolà
18e8bcb289
Issue 10784: adds os.getpriority() and os.setpriority() functions.
2011-02-25 20:57:54 +00:00
Antoine Pitrou
211b81dd09
Issue #11114 : Fix catastrophic performance of tell() on text files (up
...
to 1000x faster in some cases). It is still one to two order of magnitudes
slower than binary tell().
2011-02-25 20:27:33 +00:00
Georg Brandl
a391b11320
Rename internal helper function and make it static.
2011-02-25 15:23:18 +00:00
Giampaolo Rodolà
c9c2c8b034
Issue 10882: add os.sendfile(). (patch provided by Ross Lagerwall)
2011-02-25 14:39:16 +00:00
Antoine Pitrou
915605c59a
Merged revisions 88550 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r88550 | antoine.pitrou | 2011-02-24 21:50:49 +0100 (jeu., 24 févr. 2011) | 4 lines
Issue #11286 : Raise a ValueError from calling PyMemoryView_FromBuffer with
a buffer struct having a NULL data pointer.
........
2011-02-24 20:53:48 +00:00
Antoine Pitrou
5bffa79c22
Issue #11286 : Raise a ValueError from calling PyMemoryView_FromBuffer with
...
a buffer struct having a NULL data pointer.
2011-02-24 20:50:49 +00:00
Alexander Belopolsky
ec8f0df229
Merged revisions 88546 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r88546 | alexander.belopolsky | 2011-02-24 14:40:09 -0500 (Thu, 24 Feb 2011) | 3 lines
Issue #11286 : Fixed unpickling of empty 2.x strings.
........
2011-02-24 20:34:38 +00:00