summaryrefslogtreecommitdiffstats
path: root/Modules
Commit message (Collapse)AuthorAgeFilesLines
* 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
| |\ \ | | |/
| | * always check return value of PyObject_IsInstance for errorBenjamin Peterson2011-03-261-19/+44
| | |
| | * check possible recursive _as_parameter_ to prevent segfault (closes #1838)Benjamin Peterson2011-03-261-1/+10
| | |
* | | Issue #10833: Use PyErr_Format() and PyUnicode_FromFormat() instead ofVictor Stinner2011-03-214-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 ofVictor Stinner2011-03-215-37/+27
| | | | | | | | | | | | PyOS_snprintf().
* | | _elementtree.c: remove trailing spacesVictor Stinner2011-03-211-19/+19
| | |
* | | merge 3.2Victor Stinner2011-03-211-3/+2
|\ \ \ | |/ /
| * | time.strftime(): replace PyErr_Format() by PyErr_SetString()Victor Stinner2011-03-211-3/+2
| | | | | | | | | | | | The argument was not used in the format string.
* | | (merge) Issue #11395: io.FileIO().write() clamps the data length to 32,767Victor Stinner2011-03-201-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 onVictor Stinner2011-03-201-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 suppportVictor Stinner2011-03-151-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 Lagerwall2011-03-191-13/+22
| | |
* | | Issue #11592: Fix compilation warnings in os module.Ross Lagerwall2011-03-181-4/+4
| | |
* | | MergeAntoine Pitrou2011-03-171-3/+7
|\ \ \ | |/ /
| * | Issue #10914: fix bogus memory management in Modules/getpath.c, leading to a ↵Antoine Pitrou2011-03-171-3/+7
| | | | | | | | | | | | possible crash when calling Py_SetPath()
* | | Issue #5421: merge fixAntoine Pitrou2011-03-171-6/+17
|\ \ \ | |/ /
| * | Issue #5421: merge fixAntoine Pitrou2011-03-171-6/+17
| |\ \ | | |/
| | * Issue #5421: Fix misleading error message when one of socket.sendto()'sAntoine Pitrou2011-03-171-6/+17
| | | | | | | | | | | | arguments has the wrong type. Patch by Nikita Vetoshkin.
* | | Issue #10812: Revert os.lseek change.Ross Lagerwall2011-03-171-1/+7
| | |
* | | Issue #10812: Add some extra posix functions to the os module.Ross Lagerwall2011-03-171-152/+812
| | |
* | | Merge with 3.2.Ezio Melotti2011-03-162-3/+3
|\ \ \ | |/ /