summaryrefslogtreecommitdiffstats
path: root/Modules
Commit message (Collapse)AuthorAgeFilesLines
* 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
* merge from 3.2Senthil Kumaran2011-04-061-1/+1
|\
| * Merge from 3.1Senthil Kumaran2011-04-061-1/+1
| |\
| | * Issue #10762: Guard against invalid/non-supported format string '%f' on ↵Senthil Kumaran2011-04-061-1/+1
| | | | | | | | | | | | Windows. Patch Santoso Wijaya.
| | * Merge 3.1Kristjan Valur Jonsson2011-03-301-1/+1
| | |\
| | | * Issue 11713: clarify docstring for collections.deque()Raymond Hettinger2011-03-301-1/+1
| | | |
* | | | Issue #11576: Fixed timedelta subtraction glitch on big timedelta valuesAlexander Belopolsky2011-04-061-7/+8
|\ \ \ \ | |/ / /
| * | | Issue #11576: Fixed timedelta subtraction glitch on big timedelta valuesAlexander Belopolsky2011-04-061-7/+8
| | | |
* | | | implement tp_clearBenjamin Peterson2011-04-051-1/+10
| | | |
* | | | Issue #11707: Fix compilation errors with Visual StudioVictor Stinner2011-04-051-6/+8
| | | | | | | | | | | | | | | | Fix also a compiler (gcc) warning.
* | | | Issue #11707: Fast C version of functools.cmp_to_key()Raymond Hettinger2011-04-051-0/+161
| | | |
* | | | Issue #10785: Store the filename as Unicode in the Python parser.Victor Stinner2011-04-041-0/+1
| | | |
* | | | Issue #11753: faulthandler thread uses pthread_sigmask()Victor Stinner2011-04-041-0/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | | Issue #11688: Add sqlite3.Connection.set_trace_callback(). Patch by Torsten ↵Antoine Pitrou2011-04-031-0/+62
| | | | | | | | | | | | | | | | Landschoff.
* | | | Merge fix for issue #11746Antoine Pitrou2011-04-031-1/+1
|\ \ \ \ | |/ / /
| * | | Issue #11746: Fix SSLContext.load_cert_chain() to accept elliptic curve ↵Antoine Pitrou2011-04-031-1/+1
| | | | | | | | | | | | | | | | private keys.
| * | | MergeKristjan Valur Jonsson2011-03-301-1/+1
| |\ \ \
* | | | | Issue #5863: Rewrite BZ2File in pure Python, and allow it to acceptAntoine Pitrou2011-04-032-2180/+583
| | | | | | | | | | | | | | | | | | | | | | | | | file-like objects using a new `fileobj` constructor argument. Patch by Nadeem Vawda.
* | | | | Issue #11393: signal of user signal displays tracebacks even if tstate==NULLVictor Stinner2011-04-011-21/+37
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* | | | | Issue #11393: Fix faulthandler.disable() and add a testVictor Stinner2011-04-011-4/+4
| | | | |
* | | | | Issue #11393: The fault handler handles also SIGABRTVictor Stinner2011-04-011-8/+25
| | | | |
* | | | | Issue #11393: fault handler uses raise(signum) for SIGILL on WindowsVictor Stinner2011-04-011-15/+12
| | | | |
* | | | | Issue #11393: fix usage of locks in faulthandlerVictor Stinner2011-04-011-3/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* | | | | Issue #11393: New try to fix faulthandler_thread()Victor Stinner2011-04-011-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | | | Issue #11393: Fix faulthandler_thread(): release cancel lock before join lockVictor Stinner2011-04-011-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | | | Issue #11393: limit stack overflow test to 100 MBVictor Stinner2011-03-311-5/+32
| | | | | | | | | | | | | | | | | | | | Stop if the stack overflow doesn't occur after allocating 100 MB on the stack.
* | | | | Issue #11393: Fix the documentation (cancel_dump_traceback_later)Victor Stinner2011-03-311-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | * dump_traceback_later() => dump_tracebacks_later() * cancel_dump_traceback_later() => cancel_dump_tracebacks_later()
* | | | | Issue #11393: Add the new faulthandler moduleVictor Stinner2011-03-303-0/+975
| | | | |
* | | | | MergeKristjan Valur Jonsson2011-03-301-1/+1
|\ \ \ \ \
| * \ \ \ \ Issue 11713: clarify docstring for collections.deque()Raymond Hettinger2011-03-301-1/+1
| |\ \ \ \ \ | | | |/ / / | | |/| | |
| | * | | | Issue 11713: clarify docstring for collections.deque()Raymond Hettinger2011-03-301-1/+1
| | | | | |
* | | | | | Merge 3.2Kristjan Valur Jonsson2011-03-301-3/+6
|\ \ \ \ \ \ | |/ / / / / |/| | / / / | | |/ / / | |/| | |
| * | | | Merge 3.1Kristjan Valur Jonsson2011-03-301-3/+6
| |\ \ \ \ | | |/ / / | |/| / / | | |/ /
| | * | Bugfix: Properly test for errors from PyLong_AsLong() in itertools.cycle.Kristjan Valur Jonsson2011-03-301-3/+6
| | |/ | | | | | | | | | | | | ti can raise an exception even if PyLong_Check() has succeeded.
* | | merge 3.2Benjamin Peterson2011-03-281-3/+3
|\ \ \ | |/ /
| * | merge 3.1Benjamin Peterson2011-03-281-3/+3
| |\ \ | | |/
| | * let's keep parenthesis around sizeofBenjamin Peterson2011-03-281-3/+3
| | |
* | | Update docstrings for itertools.accumulate().Raymond Hettinger2011-03-281-3/+3
| | |
* | | Add optional *func* argument to itertools.accumulate().Raymond Hettinger2011-03-281-4/+14
| | |
* | | merge 3.2Benjamin Peterson2011-03-261-20/+54
|\ \ \ | |/ /
| * | merge 3.1Benjamin Peterson2011-03-261-20/+54
| |\ \ | | |/