summaryrefslogtreecommitdiff
path: root/Python
AgeCommit message (Collapse)AuthorLines
2005-09-23Backport bugfix:Michael W. Hudson-15/+53
Fix bug: [ 1163563 ] Sub threads execute in restricted mode basically by fixing bug 1010677 in a non-broken way. Backport candidate.
2005-09-20(backport) tracing of C functions: don't call the trace funcArmin Rigo-26/+31
with an exception currently set!
2005-09-15backport patch [ 1119423 ] python -c readlink()s and stat()s '-c'Georg Brandl-3/+3
2005-09-15backport bug [ 868706 ] Calling builtin function 'eval' from C causes seg fault.Georg Brandl-0/+7
2005-09-14Complete format code support in getargs.c::skipitem(), which is called whenGeorg Brandl-59/+39
evaluating keyword arguments. CVS: ---------------------------------------------------------------------- CVS: Enter Log. Lines beginning with `CVS:' are removed automatically CVS: CVS: Committing in . CVS: CVS: Modified Files: CVS: Python/getargs.c CVS: ----------------------------------------------------------------------
2005-09-14- Changes donated by Elemental Security to make it work on AIX 5.3Guido van Rossum-0/+12
with IBM's 64-bit compiler (SF patch #1284289). This also closes SF bug #105470: test_pwd fails on 64bit system (Opteron).
2005-09-14(backport from HEAD)Guido van Rossum-0/+14
- Changes donated by Elemental Security to make it work on HP-UX 11 on Itanium2 with HP's 64-bit compiler (SF patch #1225212).
2005-09-14Backport of patch #1290454: Fix reload() error message when parent is notGeorg Brandl-2/+3
in sys.modules.
2005-08-26Disallow keyword arguments for type constructors that don't use themGeorg Brandl-0/+26
(fixes #1119418).
2005-08-24Forward UnicodeDecodeError into SyntaxError for source encoding errors.Martin v. Löwis-5/+7
2005-08-21SF bug #1242657: list(obj) can swallow KeyboardInterruptRaymond Hettinger-0/+12
Fix over-aggressive PyErr_Clear(). The same code fragment appears in various guises in list.extend(), map(), filter(), zip(), and internally in PySequence_Tuple().
2005-08-15Fix for SF bug # 900092, hotshot.stats.load assertion failure. This patchBarry Warsaw-8/+14
restores the tracing of a 'return' event for exceptions that cause a function to exit. Also, update the unit test. I will port to Python 2.5.
2005-07-19Backport: fix cleanup DECREF logic in builtin_filter function.Georg Brandl-6/+6
2005-07-09bug 1234979 additionGeorg Brandl-2/+2
2005-07-08backport bug [ 1234979 ] Lock.acquire treats only 1 as TrueGeorg Brandl-1/+1
2005-04-24Backport my recent fix (rev. 2.40 of Python/pystate.c):Michael W. Hudson-1/+1
Fix: [ 1176893 ] Readline segfault by unsilly-ing PyGILState_Release(). Backport candidate.
2005-03-29Move exception finalisation later in the shutdown process - thisAnthony Baxter-7/+8
fixes the crash seen in bug #1165761
2005-03-28Add 0 to _POSIX_SEMAPHORES.Martin v. Löwis-1/+3
2005-03-16Patch #1163249 - Correctly handle _POSIX_SEMAPHORES == -1 to mean noAnthony Baxter-0/+4
support for posix semaphores.
2005-03-03Revert previous checkin on getargs 'L' code. Try to convert allMartin v. Löwis-1/+0
numbers in PyLong_AsLongLong, and update test suite accordingly.
2005-03-03Clear internal call error in 'L' format. Fixes #723201.Martin v. Löwis-0/+1
2005-02-08Backport 2.39:Guido van Rossum-1/+3
Close the discussion in SF bug 1069160.
2005-01-27Partially revert #1074011; don't try to fflush stdin.Martin v. Löwis-1/+10
2005-01-25happy new year! (2.4 branch)Anthony Baxter-1/+1
2005-01-23Flush std{in,out,err} before closing it. Fixes #1074011.Martin v. Löwis-3/+10
2005-01-17make thread stack size compile-time tunable on OS/2Andrew MacIntyre-1/+5
2004-12-20Back-ported: marshal.dumps() with the new optional argument 'version' justArmin Rigo-1/+1
immediately segfaults, due to a typo!
2004-11-23Hye-Shik Chang's fix for Bug 875692.Kurt B. Kaiser-0/+6
Improve signal handling, especially when using threads, by forcing an early re-execution of PyEval_EvalFrame() "periodic" code when things_to_do is not cleared by Py_MakePendingCalls(). M Misc/NEWS M Python/ceval.c
2004-11-08SF bug 1061968: threads: segfault or Py_FatalError at exitTim Peters-13/+12
PyGILState_Ensure(): The fix in 2.4a3 for bug 1010677 reintroduced thread shutdown race bug 225673. Repaired by (once again) ensuring the GIL is held whenever deleting a thread state. Alas, there's no useful test case for this shy bug. Four years ago, only Guido could provoke it, on his box, and today only Armin can provoke it on his box. I've never been able to provoke it (but not for lack of trying!). This is a critical fix for 2.3.5 too, since the fix for 1010677 got backported there already and so also reintroduced 225673. I don't intend to backport this fix. For whoever (if anyone) does, there are other thread fixes in 2.4 that need backporting too, and I bet they need to happen first for this patch to apply cleanly.
2004-11-07SF patch 1025636: Check for NULL returns in compile.c:com_import_stmtJeremy Hylton-4/+14
There is no test for this change, because there is no way to provoke memory errors on demand. Test suite passes, though.
2004-11-05SF patch #1035255: Remove CoreServices / CoreFoundation dependencies in coreRaymond Hettinger-153/+62
(Contributed by Bob Ippolito.) This patch trims down the Python core on Darwin by making it independent of CoreFoundation and CoreServices. It does this by: Changed linker flags in configure/configure.in Removed the unused PyMac_GetAppletScriptFile Moved the implementation of PyMac_StrError to the MacOS module Moved the implementation of PyMac_GetFullPathname to the Carbon.File module
2004-11-02Maintain peepholer's cumlc invariant by updating the running totalRaymond Hettinger-0/+4
everytime a LOAD_CONSTANT is encountered, created, or overwritten. Added two tests to cover cases affected by the patch.
2004-11-01Simplify and future proof NOP counting in the peepholer.Raymond Hettinger-13/+6
No longer assumes that the input is NOP free.
2004-10-30Fixed a comment and added another one.Armin Rigo-1/+4
2004-10-30Adopt some peepholer suggestions from Armin Rigo:Raymond Hettinger-15/+20
* Use simpler, faster two pass algorithm for markblocks(). * Free the blocks variable if not NULL and exiting without change. * Verify that the rest of the compiler has not set an exception. * Make the test for tuple of constants less restrictive. * Embellish the comment for chained conditional jumps.
2004-10-26SF bug #1053819: Segfault in tuple_of_constantsRaymond Hettinger-1/+9
Peepholer could be fooled into misidentifying a tuple_of_constants. Added code to count consecutive occurrences of LOAD_CONST. Use the count to weed out the misidentified cases. Added a unittest.
2004-10-24SF bug #1048870: call arg of lambda not updatingRaymond Hettinger-0/+2
2004-10-13Patch #975056 - fixes for restartable signals on *BSD. In addition,Anthony Baxter-24/+19
a few remaining calls to signal() were converted to PyOS_setsig().
2004-10-11SF patch 1044089: New C API function PyEval_ThreadsInitialized(), by NickTim Peters-4/+6
Coghlan, for determining whether PyEval_InitThreads() has been called. Also purged the undocumented+unused _PyThread_Started int.
2004-10-10Revert rev 2.35. It was based on erroneous reasoning -- the currentTim Peters-15/+8
thread's id can't get duplicated, because (of course!) the current thread is still running. The code should work either way, but reverting the gratuitous change should make backporting easier, and gets the bad reasoning out of 2.35's new comments.
2004-10-10PyInterpreterState_New(), PyThreadState_New(): use malloc/free directly.Tim Peters-4/+16
This appears to finish repairs for SF bug 1041645. This is a critical bugfix.
2004-10-10find_key(): This routine wasn't thread-correct, and accounts for theTim Peters-5/+17
release-build failures noted in bug 1041645. This is a critical bugfix. I'm not going to backport it, though (no time).
2004-10-09PyGILState_Release(): If we need to delete the TLS entry for this thread,Tim Peters-8/+15
that must be done under protection of the GIL, for reasons explained in new comments.
2004-10-09_PyGILState_Init(), PyGILState_Ensure(): Since PyThread_set_key_value()Tim Peters-2/+5
can fail, check its return value, and die if it does fail. _PyGILState_Init(): Assert that the thread doesn't already have an association for autoTLSkey. If it does, PyThread_set_key_value() will ignore the attempt to (re)set the association, which the code clearly doesn't want.
2004-10-09Document the results of painful reverse-engineering of the "portable TLS"Tim Peters-5/+83
code. PyThread_set_key_value(): It's clear that this code assumes the passed-in value isn't NULL, so document that it must not be, and assert that it isn't. It remains unclear whether existing callers want the odd semantics actually implemented by this function.
2004-10-09Style guide & consistency changes. No semantic changes.Tim Peters-29/+41
2004-10-09Trim trailing whitespace.Tim Peters-8/+8
2004-10-07SF patch #1035498: -m option to run a module as a scriptRaymond Hettinger-0/+16
(Contributed by Nick Coghlan.)
2004-10-07Finalize the freelist of list objects.Raymond Hettinger-0/+1
2004-10-03Print verbose messages to stderr. Fixes #1036752.Martin v. Löwis-1/+2