summaryrefslogtreecommitdiffstats
path: root/Modules
Commit message (Collapse)AuthorAgeFilesLines
* Issue #12012: ssl.PROTOCOL_SSLv2 becomes optionalVictor Stinner2011-05-081-1/+7
| | | | | | | 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!
* Issue #8407: The signal handler writes the signal number as a single byteVictor Stinner2011-05-081-2/+5
| | | | | 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.
* Issue #8407: Add pthread_kill(), sigpending() and sigwait() functions to theVictor Stinner2011-05-071-2/+100
| | | | signal module.
* #12017: merge with 3.2.Ezio Melotti2011-05-071-2/+13
|\
| * #12017: merge with 3.1.Ezio Melotti2011-05-071-2/+13
| |\
| | * #12017: Fix segfault in json.loads() while decoding highly-nested objects ↵Ezio Melotti2011-05-071-2/+13
| | | | | | | | | | | | using the C accelerations.
* | | faulthandler: dump all threads by defaultVictor Stinner2011-05-071-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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.
* | | faulthandler: save/restore errno in the two signal handlersVictor Stinner2011-05-071-0/+4
| | |
* | | Closes Issue 11916: Add a number of MacOSX specific definitions to the errno ↵Ronald Oussoren2011-05-071-0/+55
| | | | | | | | | | | | | | | | | | module. Patch by Pierre Carrier.
* | | Issue #8407: signal.pthread_sigmask() returns a set instead of a listVictor Stinner2011-05-041-26/+35
| | | | | | | | | | | | Update the doc. Refactor also related tests.
* | | Issue #8407: pthread_sigmask() checks immediatly if signal handlers have beenVictor Stinner2011-05-031-0/+4
| | | | | | | | | | | | | | | | | | 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).
* | | Removed unused variableAlexander Belopolsky2011-05-021-1/+0
| | |
* | | Issue #11930: Remove year >= 1000 limitation from datetime.strftime.Alexander Belopolsky2011-05-021-25/+0
| | | | | | | | | | | | Patch by Victor Stinner.
* | | mergeAlexander Belopolsky2011-05-021-14/+6
|\ \ \
| * | | cleanup signalmodule.c: use PyModule_AddIntMacro()Victor Stinner2011-05-021-14/+6
| | | |
* | | | Issue #11930: Remove deprecated time.accept2dyear.Alexander Belopolsky2011-05-021-54/+1
|/ / /
* | | (Merge 3.2) Issue #11277: mmap.mmap() calls fcntl(fd, F_FULLFSYNC) on Mac OS XVictor Stinner2011-05-011-0/+9
|\ \ \ | |/ / | | | | | | | | | to get around a mmap bug with sparse files. Patch written by Steffen Daode Nurpmeso.
| * | (Merge 3.1) Issue #11277: mmap.mmap() calls fcntl(fd, F_FULLFSYNC) on Mac OS XVictor Stinner2011-05-011-0/+9
| |\ \ | | |/ | | | | | | | | | to get around a mmap bug with sparse files. Patch written by Steffen Daode Nurpmeso.
| | * Issue #11277: mmap calls fcntl(fd, F_FULLFSYNC) on Mac OS X to get around aVictor Stinner2011-05-011-0/+9
| | | | | | | | | | | | mmap bug with sparse files. Patch written by Steffen Daode Nurpmeso.
* | | Issue #8407, issue #11859: Add signal.pthread_sigmask() function to fetchVictor Stinner2011-04-301-1/+138
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | Issue #11223: Replace threading._info() by sys.thread_infoVictor Stinner2011-04-301-13/+0
| | |
* | | Issue #10517: After fork(), reinitialize the TLS used by the PyGILState_*Antoine Pitrou2011-04-271-0/+1
|\ \ \ | |/ / | | | | | | | | | APIs, to avoid a crash with the pthread implementation in RHEL 5. Patch by Charles-François Natali.
| * | Issue #10517: After fork(), reinitialize the TLS used by the PyGILState_*Antoine Pitrou2011-04-271-0/+1
| | | | | | | | | | | | | | | APIs, to avoid a crash with the pthread implementation in RHEL 5. Patch by Charles-François Natali.
* | | Fix compilation of _testembed.c without threadsVictor Stinner2011-04-261-0/+6
| | |
* | | Issue #11918: OS/2 and VMS are no more supported because of the lack ofVictor Stinner2011-04-262-0/+3
| | | | | | | | | | | | maintainer.
* | | Issue #10914: Add a minimal embedding test to test_capi.Antoine Pitrou2011-04-251-0/+52
|\ \ \ | |/ /
| * | Issue #10914: Add a minimal embedding test to test_capi.Antoine Pitrou2011-04-251-0/+52
| | |
* | | Issue #11856: Speed up parsing of JSON numbers.Antoine Pitrou2011-04-251-15/+31
| | |
* | | Issue #11915: threading.RLock()._release_save() raises a RuntimeError if theVictor Stinner2011-04-241-0/+6
| | | | | | | | | | | | lock was not acquired.
* | | Issue #11382: Trivial system calls, such as dup() or pipe(), needn'tAntoine Pitrou2011-04-231-14/+0
| | | | | | | | | | | | release the GIL. Patch by Charles-François Natali.
* | | Simplify _count_elements() in _collectionsVictor Stinner2011-04-201-12/+4
| | | | | | | | | | | | PyIter_Next() cannot return a PyExc_StopIteration: it clears this exception.
* | | Issue #11223: Add threading._info() function providing informations about theVictor Stinner2011-04-191-7/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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).
* | | faulthandler: don't use sigprocmask()Victor Stinner2011-04-191-5/+1
| | | | | | | | | | | | | | | It has an undefined behaviour with threads, only use pthread_sigmask() if it is available (and not broken).
* | | os.sendfile(): on Linux if offset parameter is passed as NULL we were ↵Giampaolo Rodola'2011-04-191-3/+2
| | | | | | | | | | | | erroneously returning a (bytes_sent, None) tuple instead of bytes_sent
* | | (Merge 3.2) Issue #11768: The signal handler of the signal module only callsVictor Stinner2011-04-181-10/+16
|\ \ \ | |/ / | | | | | | | | | Py_AddPendingCall() for the first signal to fix a deadlock on reentrant or parallel calls. PyErr_SetInterrupt() writes also into the wake up file.
| * | (Merge 3.1) Issue #11768: The signal handler of the signal module only callsVictor Stinner2011-04-181-10/+16
| |\ \ | | |/ | | | | | | | | | Py_AddPendingCall() for the first signal to fix a deadlock on reentrant or parallel calls. PyErr_SetInterrupt() writes also into the wake up file.
| | * Issue #11768: The signal handler of the signal module only callsVictor Stinner2011-04-181-10/+16
| | | | | | | | | | | | | | | Py_AddPendingCall() for the first signal to fix a deadlock on reentrant or parallel calls. PyErr_SetInterrupt() writes also into the wake up file.
* | | Fix 64-bit safety issue in BZ2Compressor and BZ2Decompressor.Nadeem Vawda2011-04-121-9/+24
| | |
* | | Merge with 3.2.Ezio Melotti2011-04-111-1/+0
|\ \ \ | |/ /
| * | Remove unnecessary call to PyErr_Clear.Ezio Melotti2011-04-111-1/+0
| | |
* | | Issue #11757: select.select() now raises ValueError when a negative timeoutAntoine Pitrou2011-04-091-0/+5
| | | | | | | | | | | | | | | is passed (previously, a select.error with EINVAL would be raised). Patch by Charles-François Natali.
* | | Fix nit (make spelling consistent in prototype)Raymond Hettinger2011-04-091-1/+1
| | |
* | | Improve faulthandler.enable(all_threads=True)Victor Stinner2011-04-081-22/+32
| | | | | | | | | | | | | | | | | | | | | 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.
* | | faulthandler: dump_tracebacks_later() displays also the timeoutVictor Stinner2011-04-081-3/+49
| | |
* | | faulthandler: fix variable name, timeout_ms => timeout_usVictor Stinner2011-04-081-6/+6
| | | | | | | | | | | | The comment was already correct.
* | | faulthandler: one more time, fix usage of locks in the watchdog threadVictor Stinner2011-04-081-29/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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.
* | | faulthandler: fix unregister() if it is called before register()Victor Stinner2011-04-081-0/+3
| | | | | | | | | | | | Fix a crash: don't read from NULL.
* | | faulthandler: fix compilating without threadsVictor Stinner2011-04-071-0/+8
| | |
* | | faulthandler: we don't use (or need) SA_SIGINFO flag of sigaction()Victor Stinner2011-04-071-7/+2
| | |
* | | faulthandler: check PyThreadState_Get() result in dump_tracebacks_later()Victor Stinner2011-04-071-12/+21
| | | | | | | | | | | | Cleanup also the code