Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Expand comments on line numbers and blocks. | Jeremy Hylton | 2006-04-01 | 1 | -6/+21 |
| | | | | Reorder compiler_set_lineno() call for consistency. | ||||
* | Patch #1460496: round() now accepts keyword arguments. | Georg Brandl | 2006-03-31 | 1 | -13/+15 |
| | |||||
* | Expand comments. | Jeremy Hylton | 2006-03-31 | 1 | -0/+27 |
| | | | | | | Explicitly clear all elements from arena->a_objects and remove assert() that refcount is 1. It's possible for a program to get a reference to the list via sys.getobjects() or via gc functions. | ||||
* | In format strings slinging Py_ssize_t, unconditionally | Tim Peters | 2006-03-28 | 1 | -9/+6 |
| | | | | | interpolate PY_FORMAT_SIZE_T instead of #if'ing on MS_WIN64. | ||||
* | answer a question from a comment | Armin Rigo | 2006-03-28 | 1 | -3/+3 |
| | |||||
* | Fix SF bug #1458903 with AST compiler. | Neal Norwitz | 2006-03-27 | 1 | -4/+11 |
| | | | | | | | | | | | | def foo((x)): was getting recognized as requiring tuple unpacking which is not correct. Add tests for this case and the proper way to unpack a tuple of one: def foo((x,)): test_inpsect was incorrect before. I'm not sure why it was passing, but that has been corrected with a test for both functions above. This means the test (and therefore inspect.getargspec()) are broken in 2.4. | ||||
* | Years in the making. | Tim Peters | 2006-03-26 | 1 | -1/+1 |
| | | | | | | | | | | | | | | | | | | | | | | | | objimpl.h, pymem.h: Stop mapping PyMem_{Del, DEL} and PyMem_{Free, FREE} to PyObject_{Free, FREE} in a release build. They're aliases for the system free() now. _subprocess.c/sp_handle_dealloc(): Since the memory was originally obtained via PyObject_NEW, it must be released via PyObject_FREE (or _DEL). pythonrun.c, tokenizer.c, parsermodule.c: I lost count of the number of PyObject vs PyMem mismatches in these -- it's like the specific function called at each site was picked at random, sometimes even with memory obtained via PyMem getting released via PyObject. Changed most to use PyObject uniformly, since the blobs allocated are predictably small in most cases, and obmalloc is generally faster than system mallocs then. If extension modules in real life prove as sloppy as Python's front end, we'll have to revert the objimpl.h + pymem.h part of this patch. Note that no problems will show up in a debug build (all calls still go thru obmalloc then). Problems will show up only in a release build, most likely segfaults. | ||||
* | Found this in an old email message from Hartmut Goebel. | Skip Montanaro | 2006-03-25 | 1 | -0/+1 |
| | |||||
* | Patch #1396919: Reenable the system scope threads on FreeBSD 5.4 | Hye-Shik Chang | 2006-03-23 | 1 | -1/+11 |
| | | | | | and later versions because they bumped the default setting to get our basic tests to run correctly.. | ||||
* | Fix a ssize_t issue | Neal Norwitz | 2006-03-23 | 1 | -1/+1 |
| | |||||
* | Forward port MvL's fix in 43227: | Neal Norwitz | 2006-03-23 | 1 | -0/+4 |
| | | | | | Fix crash when a Unicode string containing an encoding declaration is compile()d. Fixes #1115379. | ||||
* | Use macro versions instead of function versions when we already know the type. | Neal Norwitz | 2006-03-20 | 2 | -3/+3 |
| | | | | | | | | This will hopefully get rid of some Coverity warnings, be a hint to developers, and be marginally faster. Some asserts were added when the type is currently known, but depends on values from another function. | ||||
* | Release codecs variable earlier. | Walter Dörwald | 2006-03-18 | 1 | -4/+2 |
| | |||||
* | Fix some missing checks after PyTuple_New, PyList_New, PyDict_New | Georg Brandl | 2006-03-17 | 1 | -1/+3 |
| | |||||
* | Fix bug 1441408 where a double colon didn't trigger extended slice semantics ↵ | Nick Coghlan | 2006-03-17 | 1 | -8/+12 |
| | | | | (applies patch 1452332) | ||||
* | Fix wrong argument format in PyCodec_IncrementalEncoder() and | Walter Dörwald | 2006-03-16 | 1 | -96/+57 |
| | | | | | | | | PyCodec_IncrementalDecoder(). Factor out common code from PyCodec_Encoder()/PyCodec_Decoder(), PyCodec_IncrementalEncoder()/PyCodec_IncrementalDecoder() and PyCodec_StreamReader()/PyCodec_StreamWriter(). | ||||
* | Make mktuple consistent with mklist to get rid of Coverity warnings. Also ↵ | Neal Norwitz | 2006-03-16 | 1 | -10/+10 |
| | | | | use macro version of SetItem since we know everything is setup. | ||||
* | Patch #1436130: codecs.lookup() now returns a CodecInfo object (a subclass | Walter Dörwald | 2006-03-15 | 1 | -0/+50 |
| | | | | | | | of tuple) that provides incremental decoders and encoders (a way to use stateful codecs without the stream API). Functions codecs.getincrementaldecoder() and codecs.getincrementalencoder() have been added. | ||||
* | Fix SF bug #1448804 and ad a test to ensure that all subscript operations ↵ | Nick Coghlan | 2006-03-13 | 1 | -24/+29 |
| | | | | continue to be handled correctly | ||||
* | Um, I thought I'd already checked this in. | Guido van Rossum | 2006-03-10 | 3 | -25/+27 |
| | | | | | | | Anyway, this is the changes to the with-statement so that __exit__ must return a true value in order for a pending exception to be ignored. The PEP (343) is already updated. | ||||
* | Try to be a bit more consistent on all platforms: | Neal Norwitz | 2006-03-09 | 1 | -1/+4 |
| | | | | | | | python . python < . both print a message, return non-zero and do not core dump. | ||||
* | Checking in the code for PEP 357. | Guido van Rossum | 2006-03-07 | 1 | -46/+22 |
| | | | | | | This was mostly written by Travis Oliphant. I've inspected it all; Neal Norwitz and MvL have also looked at it (in an earlier incarnation). | ||||
* | Address an coverity issue. Coverity was complaining about a line that's fine, | Guido van Rossum | 2006-03-07 | 1 | -1/+2 |
| | | | | but an earlier line checked for v != NULL unnecessarily. | ||||
* | SF #1444030: Fix several potential defects found by Coverity. | Hye-Shik Chang | 2006-03-07 | 3 | -2/+11 |
| | | | | (reviewed by Neal Norwitz) | ||||
* | Change int to Py_ssize_t in several places. | Martin v. Löwis | 2006-03-07 | 5 | -18/+34 |
| | | | | | Add (int) casts to silence compiler warnings. Raise Python exceptions for overflows. | ||||
* | Fix warnings on x86 (32-bit). | Neal Norwitz | 2006-03-06 | 1 | -1/+2 |
| | |||||
* | Try to cleanup the error handling a bit so there aren't false positives | Neal Norwitz | 2006-03-06 | 1 | -8/+12 |
| | | | | | from static analysis. v was already checked for NULL above, so we don't need a second check. | ||||
* | Use %Id for size_t-ish things on Win64. | Martin v. Löwis | 2006-03-05 | 1 | -1/+1 |
| | |||||
* | Use Py_ssize_t for _Py_RefTotal. | Neal Norwitz | 2006-03-04 | 2 | -7/+13 |
| | | | | I tried to handle Win64 properly, but please review. | ||||
* | Tabify | Neal Norwitz | 2006-03-04 | 1 | -34/+34 |
| | |||||
* | Get rid of run_err_mod(). It was only used in two places. | Neal Norwitz | 2006-03-04 | 1 | -14/+4 |
| | | | | | One place it wasn't necessary since mod was already checked. Inline the check that mod != NULL for the other use. | ||||
* | SF bug 1442442: LIST_APPEND optimization got lost in the AST merge. | Neal Norwitz | 2006-03-03 | 1 | -3/+4 |
| | | | | Add it back. | ||||
* | Remove commented code | Neal Norwitz | 2006-03-03 | 1 | -24/+1 |
| | |||||
* | Text moved to PEP 339. | Brett Cannon | 2006-03-02 | 1 | -507/+0 |
| | |||||
* | Fix minor docstring typo. | Brett Cannon | 2006-03-02 | 1 | -1/+1 |
| | |||||
* | Document the purpose of the struct _block members. | Tim Peters | 2006-03-02 | 1 | -1/+18 |
| | |||||
* | Added words about what PyArena_Malloc() does. | Tim Peters | 2006-03-02 | 1 | -1/+1 |
| | |||||
* | Trimmed trailing whitespace. | Tim Peters | 2006-03-02 | 1 | -6/+6 |
| | |||||
* | Fix refleak in PyErr_Display(). | Brett Cannon | 2006-03-02 | 1 | -15/+14 |
| | |||||
* | Fix refleak if from __future__ import was not first | Neal Norwitz | 2006-03-02 | 1 | -0/+1 |
| | |||||
* | Use Py_ssize_t since we are working with list size below | Neal Norwitz | 2006-03-02 | 1 | -1/+1 |
| | |||||
* | Add a missing Py_DECREF to BaseException__unicode__ . | Brett Cannon | 2006-03-02 | 1 | -2/+8 |
| | |||||
* | Update known issues to reflect reality | Neal Norwitz | 2006-03-02 | 1 | -4/+1 |
| | |||||
* | Fix memory leak on attributes. | Martin v. Löwis | 2006-03-02 | 1 | -5/+13 |
| | |||||
* | Make Py_ssize_t clean. | Thomas Wouters | 2006-03-01 | 1 | -1/+3 |
| | |||||
* | Patch #1440601: Add col_offset attribute to AST nodes. | Martin v. Löwis | 2006-03-01 | 3 | -134/+211 |
| | |||||
* | Fix incompatible assignment warning from previous checkin. | Thomas Wouters | 2006-03-01 | 1 | -1/+2 |
| | |||||
* | Fix gcc (4.0.x) warning about use of uninitialized variables. | Thomas Wouters | 2006-03-01 | 1 | -1/+2 |
| | | | | | (PyMarshal_ReadShortFromFile() is only used in zipimport.c, I don't believe the extra initializations will matter one way or another.) | ||||
* | Document PEP 352 changes. Also added GeneratorExit. | Brett Cannon | 2006-03-01 | 1 | -7/+2 |
| | |||||
* | Fix uninitialized value. (Why are we using bools instead of ints, like we do | Thomas Wouters | 2006-03-01 | 1 | -1/+1 |
| | | | | everywhere else?) |