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