Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Issue #10785: Store the filename as Unicode in the Python parser. | Victor Stinner | 2011-04-04 | 1 | -0/+1 |
| | |||||
* | Issue #11753: faulthandler thread uses pthread_sigmask() | Victor Stinner | 2011-04-04 | 1 | -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 Pitrou | 2011-04-03 | 1 | -0/+62 |
| | | | | Landschoff. | ||||
* | Merge fix for issue #11746 | Antoine Pitrou | 2011-04-03 | 1 | -1/+1 |
|\ | |||||
| * | Issue #11746: Fix SSLContext.load_cert_chain() to accept elliptic curve ↵ | Antoine Pitrou | 2011-04-03 | 1 | -1/+1 |
| | | | | | | | | private keys. | ||||
| * | Merge | Kristjan Valur Jonsson | 2011-03-30 | 1 | -1/+1 |
| |\ | |||||
* | | | Issue #5863: Rewrite BZ2File in pure Python, and allow it to accept | Antoine Pitrou | 2011-04-03 | 2 | -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==NULL | Victor Stinner | 2011-04-01 | 1 | -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 test | Victor Stinner | 2011-04-01 | 1 | -4/+4 |
| | | | |||||
* | | | Issue #11393: The fault handler handles also SIGABRT | Victor Stinner | 2011-04-01 | 1 | -8/+25 |
| | | | |||||
* | | | Issue #11393: fault handler uses raise(signum) for SIGILL on Windows | Victor Stinner | 2011-04-01 | 1 | -15/+12 |
| | | | |||||
* | | | Issue #11393: fix usage of locks in faulthandler | Victor Stinner | 2011-04-01 | 1 | -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 Stinner | 2011-04-01 | 1 | -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 lock | Victor Stinner | 2011-04-01 | 1 | -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 MB | Victor Stinner | 2011-03-31 | 1 | -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 Stinner | 2011-03-31 | 1 | -6/+6 |
| | | | | | | | | | | | | | | | * dump_traceback_later() => dump_tracebacks_later() * cancel_dump_traceback_later() => cancel_dump_tracebacks_later() | ||||
* | | | Issue #11393: Add the new faulthandler module | Victor Stinner | 2011-03-30 | 3 | -0/+975 |
| | | | |||||
* | | | Merge | Kristjan Valur Jonsson | 2011-03-30 | 1 | -1/+1 |
|\ \ \ | |||||
| * \ \ | Issue 11713: clarify docstring for collections.deque() | Raymond Hettinger | 2011-03-30 | 1 | -1/+1 |
| |\ \ \ | | | |/ | | |/| | |||||
| | * | | Issue 11713: clarify docstring for collections.deque() | Raymond Hettinger | 2011-03-30 | 1 | -1/+1 |
| | | | | |||||
* | | | | Merge 3.2 | Kristjan Valur Jonsson | 2011-03-30 | 1 | -3/+6 |
|\ \ \ \ | |/ / / |/| | / | | |/ | |/| | |||||
| * | | Merge 3.1 | Kristjan Valur Jonsson | 2011-03-30 | 1 | -3/+6 |
| |\ \ | | |/ | |/| | |||||
| | * | Bugfix: Properly test for errors from PyLong_AsLong() in itertools.cycle. | Kristjan Valur Jonsson | 2011-03-30 | 1 | -3/+6 |
| | | | | | | | | | | | | | | | ti can raise an exception even if PyLong_Check() has succeeded. | ||||
* | | | merge 3.2 | Benjamin Peterson | 2011-03-28 | 1 | -3/+3 |
|\ \ \ | |/ / | |||||
| * | | merge 3.1 | Benjamin Peterson | 2011-03-28 | 1 | -3/+3 |
| |\ \ | | |/ | |||||
| | * | let's keep parenthesis around sizeof | Benjamin Peterson | 2011-03-28 | 1 | -3/+3 |
| | | | |||||
* | | | Update docstrings for itertools.accumulate(). | Raymond Hettinger | 2011-03-28 | 1 | -3/+3 |
| | | | |||||
* | | | Add optional *func* argument to itertools.accumulate(). | Raymond Hettinger | 2011-03-28 | 1 | -4/+14 |
| | | | |||||
* | | | merge 3.2 | Benjamin Peterson | 2011-03-26 | 1 | -20/+54 |
|\ \ \ | |/ / | |||||
| * | | merge 3.1 | Benjamin Peterson | 2011-03-26 | 1 | -20/+54 |
| |\ \ | | |/ | |||||
| | * | always check return value of PyObject_IsInstance for error | Benjamin Peterson | 2011-03-26 | 1 | -19/+44 |
| | | | |||||
| | * | check possible recursive _as_parameter_ to prevent segfault (closes #1838) | Benjamin Peterson | 2011-03-26 | 1 | -1/+10 |
| | | | |||||
* | | | Issue #10833: Use PyErr_Format() and PyUnicode_FromFormat() instead of | Victor Stinner | 2011-03-21 | 4 | -26/+13 |
| | | | | | | | | | | | | | | | PyOS_snprintf() to avoid temporary buffer allocated on the stack and a conversion from bytes to Unicode. | ||||
* | | | Issue #10833: Use PyUnicode_FromFormat() and PyErr_Format() instead of | Victor Stinner | 2011-03-21 | 5 | -37/+27 |
| | | | | | | | | | | | | PyOS_snprintf(). | ||||
* | | | _elementtree.c: remove trailing spaces | Victor Stinner | 2011-03-21 | 1 | -19/+19 |
| | | | |||||
* | | | merge 3.2 | Victor Stinner | 2011-03-21 | 1 | -3/+2 |
|\ \ \ | |/ / | |||||
| * | | time.strftime(): replace PyErr_Format() by PyErr_SetString() | Victor Stinner | 2011-03-21 | 1 | -3/+2 |
| | | | | | | | | | | | | The argument was not used in the format string. | ||||
* | | | (merge) Issue #11395: io.FileIO().write() clamps the data length to 32,767 | Victor Stinner | 2011-03-20 | 1 | -1/+8 |
|\ \ \ | |/ / | | | | | | | | | | | | | | | | 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). | ||||
| * | | Issue #11395: io.FileIO().write() clamps the data length to 32,767 bytes on | Victor Stinner | 2011-03-20 | 1 | -1/+8 |
| | | | | | | | | | | | | | | | | | | | | | 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). | ||||
* | | | Issue #3080: zipimport has a full unicode suppport | Victor Stinner | 2011-03-15 | 1 | -135/+168 |
| | | | | | | | | | | | | | | | | | | | | | | | | - 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() | ||||
* | | | Fix refleak introduced by #10812. | Ross Lagerwall | 2011-03-19 | 1 | -13/+22 |
| | | | |||||
* | | | Issue #11592: Fix compilation warnings in os module. | Ross Lagerwall | 2011-03-18 | 1 | -4/+4 |
| | | | |||||
* | | | Merge | Antoine Pitrou | 2011-03-17 | 1 | -3/+7 |
|\ \ \ | |/ / | |||||
| * | | Issue #10914: fix bogus memory management in Modules/getpath.c, leading to a ↵ | Antoine Pitrou | 2011-03-17 | 1 | -3/+7 |
| | | | | | | | | | | | | possible crash when calling Py_SetPath() | ||||
* | | | Issue #5421: merge fix | Antoine Pitrou | 2011-03-17 | 1 | -6/+17 |
|\ \ \ | |/ / | |||||
| * | | Issue #5421: merge fix | Antoine Pitrou | 2011-03-17 | 1 | -6/+17 |
| |\ \ | | |/ | |||||
| | * | Issue #5421: Fix misleading error message when one of socket.sendto()'s | Antoine Pitrou | 2011-03-17 | 1 | -6/+17 |
| | | | | | | | | | | | | arguments has the wrong type. Patch by Nikita Vetoshkin. | ||||
* | | | Issue #10812: Revert os.lseek change. | Ross Lagerwall | 2011-03-17 | 1 | -1/+7 |
| | | | |||||
* | | | Issue #10812: Add some extra posix functions to the os module. | Ross Lagerwall | 2011-03-17 | 1 | -152/+812 |
| | | | |||||
* | | | Merge with 3.2. | Ezio Melotti | 2011-03-16 | 2 | -3/+3 |
|\ \ \ | |/ / |