Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | bugfix: PyThread_start_new_thread() returns the thread ID, not a flag; | Andrew MacIntyre | 2006-07-23 | 1 | -7/+4 |
| | | | | will backport. | ||||
* | If the for loop isn't entered, entryblock will be NULL. If passed | Neal Norwitz | 2006-07-23 | 1 | -0/+2 |
| | | | | | | to stackdepth_walk it will be dereffed. Not sure if I found with failmalloc or Klockwork #55. | ||||
* | Handle more mem alloc issues found with failmalloc | Neal Norwitz | 2006-07-23 | 2 | -1/+5 |
| | |||||
* | Fix more memory allocation issues found with failmalloc. | Neal Norwitz | 2006-07-22 | 4 | -24/+45 |
| | |||||
* | Handle more memory allocation failures without crashing. | Neal Norwitz | 2006-07-21 | 5 | -8/+38 |
| | |||||
* | Speel initialise write. Tanks Anthony. | Neal Norwitz | 2006-07-21 | 1 | -1/+1 |
| | |||||
* | Handle allocation failures gracefully. Found with failmalloc. | Neal Norwitz | 2006-07-21 | 3 | -41/+45 |
| | | | | Many (all?) of these could be backported. | ||||
* | SF bug 1524317: configure --without-threads fails to build | Tim Peters | 2006-07-19 | 1 | -48/+47 |
| | | | | | | | | | | | | | | | | | | Moved the code for _PyThread_CurrentFrames() up, so it's no longer in a huge "#ifdef WITH_THREAD" block (I didn't realize it /was/ in one). Changed test_sys's test_current_frames() so it passes with or without thread supported compiled in. Note that test_sys fails when Python is compiled without threads, but for an unrelated reason (the old test_exit() fails with an indirect ImportError on the `thread` module). There are also other unrelated compilation failures without threads, in extension modules (like ctypes); at least the core compiles again. Do we really support --without-threads? If so, there are several problems remaining. | ||||
* | Reported by Klocwork #151. | Neal Norwitz | 2006-07-17 | 1 | -2/+13 |
| | | | | | | v2 can be NULL if exception2 is NULL. I don't think that condition can happen, but I'm not sure it can't either. Now the code will protect against either being NULL. | ||||
* | Fix memory leak under some conditions. | Neal Norwitz | 2006-07-16 | 1 | -7/+9 |
| | | | | Reported by Klocwork, #98. | ||||
* | Bug #1512814, Fix incorrect lineno's when code within a function | Neal Norwitz | 2006-07-16 | 1 | -5/+6 |
| | | | | had more than 255 blank lines. Byte codes need to go first, line #s second. | ||||
* | Accept long options "--help" and "--version". | Georg Brandl | 2006-07-12 | 1 | -4/+27 |
| | |||||
* | Actually change the MAGIC #. Create a new section for 2.5c1 and mention the ↵ | Neal Norwitz | 2006-07-12 | 1 | -1/+1 |
| | | | | impact of changing the MAGIC #. | ||||
* | Bug #1520864: unpacking singleton tuples in for loop (for x, in) work again. | Neal Norwitz | 2006-07-12 | 2 | -2/+7 |
| | |||||
* | Add missing Py_DECREFs. | Thomas Heller | 2006-07-11 | 1 | -1/+2 |
| | |||||
* | After approval from Anthony, merge the tim-current_frames | Tim Peters | 2006-07-10 | 2 | -3/+68 |
| | | | | | | branch into the trunk. This adds a new sys._current_frames() function, which returns a dict mapping thread id to topmost thread stack frame. | ||||
* | Bug #1512814, Fix incorrect lineno's when code at module scope | Neal Norwitz | 2006-07-10 | 1 | -1/+9 |
| | | | | started after line 256. | ||||
* | On 64 bit systems, int literals that use less than 64 bits are now ints | Neal Norwitz | 2006-07-09 | 1 | -0/+11 |
| | | | | rather than longs. This also fixes the test for eval(-sys.maxint - 1). | ||||
* | Fix SF bug 1441486: bad unary minus folding in compiler. | Neil Schemenauer | 2006-07-09 | 1 | -20/+53 |
| | |||||
* | Fix AST compiler bug #1501934: incorrect LOAD/STORE_GLOBAL generation. | Neil Schemenauer | 2006-07-09 | 2 | -3/+5 |
| | |||||
* | Fix SF bug #1519018: 'as' is now validated properly in import statements | Neal Norwitz | 2006-07-08 | 1 | -1/+12 |
| | |||||
* | Fix refleaks reported by Shane Hathaway in SF patch #1515361. This change | Neal Norwitz | 2006-07-06 | 1 | -2/+4 |
| | | | | contains only the changes related to leaking the copy variable. | ||||
* | Bug #1417699: Reject locale-specific decimal point in float() | Martin v. Löwis | 2006-07-03 | 1 | -0/+7 |
| | | | | and atof(). | ||||
* | Bug #1511381: codec_getstreamcodec() in codec.c is corrected to | Hye-Shik Chang | 2006-06-23 | 1 | -3/+6 |
| | | | | | | omit a default "error" argument for NULL pointer. This allows the parser to take a codec from cjkcodecs again. (Reported by Taewook Kang and reviewed by Walter Doerwald) | ||||
* | Patch #1454481: Make thread stack size runtime tunable. | Andrew MacIntyre | 2006-06-13 | 4 | -5/+163 |
| | | | | | | | | | | Heavily revised, comprising revisions: 46640 - original trunk revision (backed out in r46655) 46647 - markup fix (backed out in r46655) 46692:46918 merged from branch aimacintyre-sf1454481 branch tested on buildbots (Windows buildbots had problems not related to these changes). | ||||
* | i and j are initialized below when used. No need to do it twice | Neal Norwitz | 2006-06-12 | 1 | -1/+1 |
| | |||||
* | Get rid of f_restricted too. Doc the other 4 ints that were already removed | Neal Norwitz | 2006-06-12 | 1 | -1/+1 |
| | | | | at the NeedForSpeed sprint. | ||||
* | Fix indentation of case and a Py_ssize_t issue. | Neal Norwitz | 2006-06-12 | 1 | -2/+2 |
| | |||||
* | Patch #1495999: Part two of Windows CE changes. | Martin v. Löwis | 2006-06-10 | 6 | -3/+9 |
| | | | | | | - update header checks, using autoconf - provide dummies for getenv, environ, and GetVersion - adjust MSC_VER check in socketmodule.c | ||||
* | Argh. "integer" is a very confusing word ;) | Georg Brandl | 2006-06-08 | 1 | -2/+2 |
| | | | | | Actually, checking for INT_MAX and INT_MIN is correct since the format code explicitly handles a C "int". | ||||
* | Bug #1502750: Fix getargs "i" format to use LONG_MIN and LONG_MAX for bounds ↵ | Georg Brandl | 2006-06-08 | 1 | -2/+2 |
| | | | | checking. | ||||
* | _PySys_Init(): It's rarely a good idea to size a buffer to the | Tim Peters | 2006-06-06 | 1 | -1/+1 |
| | | | | | | | | exact maximum size someone guesses is needed. In this case, if we're really worried about extreme integers, then "cp%d" can actually need 14 bytes (2 for "cp" + 1 for \0 at the end + 11 for -(2**31-1)). So reserve 128 bytes instead -- nothing is actually saved by making a stack-local buffer tiny. | ||||
* | Add 3 more bytes to a buffer to cover constants in string and null byte on ↵ | Brett Cannon | 2006-06-05 | 1 | -1/+1 |
| | | | | | | top of 10 possible digits for an int. Closes bug #1501223. | ||||
* | Revert revisions: | Tim Peters | 2006-06-04 | 4 | -170/+4 |
| | | | | | | | | | | | | | | | | 46640 Patch #1454481: Make thread stack size runtime tunable. 46647 Markup fix The first is causing many buildbots to fail test runs, and there are multiple causes with seemingly no immediate prospects for repairing them. See python-dev discussion. Note that a branch can (and should) be created for resolving these problems, like svn copy svn+ssh://svn.python.org/python/trunk -r46640 svn+ssh://svn.python.org/python/branches/NEW_BRANCH followed by merging rev 46647 to the new branch. | ||||
* | Patch #1346214: correctly optimize away "if 0"-style stmts | Georg Brandl | 2006-06-04 | 2 | -15/+49 |
| | | | | (thanks to Neal for review) | ||||
* | clean up function declarations to conform to PEP-7 style. | Andrew MacIntyre | 2006-06-04 | 3 | -22/+44 |
| | |||||
* | Patch #1454481: Make thread stack size runtime tunable. | Andrew MacIntyre | 2006-06-04 | 4 | -4/+170 |
| | |||||
* | [ 1497053 ] Let dicts propagate the exceptions in user __eq__(). | Armin Rigo | 2006-06-01 | 1 | -2/+13 |
| | | | | [ 1456209 ] dictresize() vulnerability ( <- backport candidate ). | ||||
* | Convert more modules to METH_VARARGS. | Georg Brandl | 2006-05-29 | 1 | -5/+3 |
| | |||||
* | Make use of METH_O and METH_NOARGS where possible. | Georg Brandl | 2006-05-29 | 1 | -2/+2 |
| | | | | Use Py_UnpackTuple instead of PyArg_ParseTuple where possible. | ||||
* | Fix compiler warning. | Georg Brandl | 2006-05-29 | 1 | -1/+1 |
| | |||||
* | Handle PyMem_Malloc failure in pystrtod.c. Closes #1494671. | Georg Brandl | 2006-05-29 | 1 | -0/+7 |
| | |||||
* | Fix #1494605. | Georg Brandl | 2006-05-29 | 1 | -1/+2 |
| | |||||
* | Correct None refcount issue in Mac modules. (Are they | Georg Brandl | 2006-05-28 | 1 | -1/+1 |
| | | | | still used?) | ||||
* | The empty string is a valid import path. | Georg Brandl | 2006-05-28 | 1 | -2/+4 |
| | | | | (fixes #1496539) | ||||
* | PyErr_Display(), PyErr_WriteUnraisable(): Coverity found a cut-and-paste | Tim Peters | 2006-05-28 | 2 | -18/+23 |
| | | | | bug in both: `className` was referenced before being checked for NULL. | ||||
* | Conversion of exceptions over from faked-up classes to new-style C types. | Richard Jones | 2006-05-27 | 3 | -2056/+23 |
| | |||||
* | needforspeed: backed out the Py_LOCAL-isation of ceval; the massive in- | Fredrik Lundh | 2006-05-27 | 1 | -60/+55 |
| | | | | | lining killed performance on certain Intel boxes, and the "aggressive" macro itself gives most of the benefits on others. | ||||
* | Patch 1145039. | Tim Peters | 2006-05-26 | 1 | -41/+56 |
| | | | | | | | | | | | | | | | | | | | set_exc_info(), reset_exc_info(): By exploiting the likely (who knows?) invariant that when an exception's `type` is NULL, its `value` and `traceback` are also NULL, save some cycles in heavily-executed code. This is a "a kronar saved is a kronar earned" patch: the speedup isn't reliably measurable, but it obviously does reduce the operation count in the normal (no exception raised) path through PyEval_EvalFrameEx(). The tim-exc_sanity branch tries to push this harder, but is still blowing up (at least in part due to pre-existing subtle bugs that appear to have no other visible consequences!). Not a bugfix candidate. | ||||
* | Replace Py_BuildValue("OO") by PyTuple_Pack. | Georg Brandl | 2006-05-26 | 2 | -4/+4 |
| |