Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | 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?) | ||||
* | Fix more memory leaks. Will backport to 2.4. | Martin v. Löwis | 2006-03-01 | 1 | -1/+5 |
| | |||||
* | Fix C99-ism, and add XXX to comment | Thomas Wouters | 2006-03-01 | 1 | -1/+1 |
| | |||||
* | Reconst parameters that lost their const in the AST merge. | Martin v. Löwis | 2006-03-01 | 1 | -1/+1 |
| | |||||
* | Tabify and reflow some long lines. | Jeremy Hylton | 2006-03-01 | 1 | -696/+702 |
| | | | | | Much of the peephole optimizer is now indented badly, but it's about to be revised anyway. | ||||
* | Add missing DECREF. | Jeremy Hylton | 2006-03-01 | 1 | -1/+5 |
| | |||||
* | Use %zd format characters for Py_ssize_t types. | Thomas Wouters | 2006-03-01 | 1 | -6/+6 |
| | |||||
* | Put back the essence of Jeremy's original XXX comment. | Thomas Wouters | 2006-03-01 | 1 | -1/+3 |
| | |||||
* | PEP 352 implementation. Creates a new base class, BaseException, which has an | Brett Cannon | 2006-03-01 | 5 | -191/+300 |
| | | | | | | | | | added message attribute compared to the previous version of Exception. It is also a new-style class, making all exceptions now new-style. KeyboardInterrupt and SystemExit inherit from BaseException directly. String exceptions now raise DeprecationWarning. Applies patch 1104669, and closes bugs 1012952 and 518846. | ||||
* | Use Py_ssize_t for PyArg_UnpackTuple arguments. | Martin v. Löwis | 2006-03-01 | 1 | -2/+2 |
| | |||||
* | Don't pollute namespace as bad as before. All the types are static now. | Neal Norwitz | 2006-02-28 | 1 | -152/+152 |
| | |||||
* | Make 'as' an actual keyword when with's future statement is used. Not | Thomas Wouters | 2006-02-28 | 2 | -191/+195 |
| | | | | actually necessary for functionality, but good for transition. | ||||
* | No need to export PySTEntry_New, it is only used in symtable.c | Neal Norwitz | 2006-02-28 | 1 | -1/+2 |
| | |||||
* | Updates to the with-statement: | Guido van Rossum | 2006-02-28 | 2 | -6/+21 |
| | | | | | | | | | | | | | | | | - New semantics for __exit__() -- it must re-raise the exception if type is not None; the with-statement itself doesn't do this. (See the updated PEP for motivation.) - Added context managers to: - file - thread.LockType - threading.{Lock,RLock,Condition,Semaphore,BoundedSemaphore} - decimal.Context - Added contextlib.py, which defines @contextmanager, nested(), closing(). - Unit tests all around; bot no docs yet. | ||||
* | Generally inehrit codeflags that are in PyCF_MASK, instead of writing it out | Thomas Wouters | 2006-02-28 | 1 | -4/+4 |
| | | | | | in multiple places. This makes compile()/eval()/etc also inherit the absolute-import codeflag, like division and with-statement already were. | ||||
* | Add some stats collection in debugging mode. | Jeremy Hylton | 2006-02-28 | 1 | -3/+41 |
| | | | | No good way to extract output yet. | ||||
* | from __future__ import with_statement addon for 'with', mostly written by | Thomas Wouters | 2006-02-28 | 4 | -4/+10 |
| | | | | Neal. | ||||
* | Use simple PyList to implement list of PyObject pointers | Jeremy Hylton | 2006-02-28 | 1 | -44/+20 |
| | |||||
* | Tabify | Jeremy Hylton | 2006-02-28 | 1 | -84/+87 |
| | |||||
* | Remove asdl_seq_APPEND() and simplify asdl seq implementation. | Jeremy Hylton | 2006-02-28 | 2 | -69/+57 |
| | | | | Clarify intended use of set_context() and check errors at all call sites. | ||||
* | Real arena implementation | Jeremy Hylton | 2006-02-28 | 1 | -62/+80 |
| | | | | | Replace the toy arena implementation with a real one, based on allocating 8K chunks of memory by default. | ||||
* | SF patch #1438387, PEP 328: relative and absolute imports. | Thomas Wouters | 2006-02-28 | 9 | -55/+180 |
| | | | | | | | | | | | | | | | | | | | | | | | - IMPORT_NAME takes an extra argument from the stack: the relativeness of the import. Only passed to __import__ when it's not -1. - __import__() takes an optional 5th argument for the same thing; it __defaults to -1 (old semantics: try relative, then absolute) - 'from . import name' imports name (be it module or regular attribute) from the current module's *package*. Likewise, 'from .module import name' will import name from a sibling to the current module. - Importing from outside a package is not allowed; 'from . import sys' in a toplevel module will not work, nor will 'from .. import sys' in a (single-level) package. - 'from __future__ import absolute_import' will turn on the new semantics for import and from-import: imports will be absolute, except for from-import with dots. Includes tests for regular imports and importhooks, parser changes and a NEWS item, but no compiler-package changes or documentation changes. | ||||
* | Regenerate. | Martin v. Löwis | 2006-02-28 | 1 | -0/+2 |
| | |||||
* | Check the return code for PyErr_Warn() when warning about raising string | Brett Cannon | 2006-02-27 | 1 | -4/+5 |
| | | | | | exceptions. This was triggered when 'warnings' had a filter set to "error" that caught the string exception deprecation warning. | ||||
* | PyErr_ProgramText(): Grrrrrr. | Tim Peters | 2006-02-27 | 1 | -1/+1 |
| | | | | | | | | | | | In a Windows debug build, trying to open a file using an empty string as the name causes assertion death inside MS's C runtime code. We probably need to worm around that in many places. I'm worming around it here to stop the new test_with.py from assert-dying in the Windows debug build (it calls compile() with an empty string for "the file name", which indirectly leads to C-level code in Python trying to fopen("", "r")). | ||||
* | Clarify C-style exception handling with proper label name. | Thomas Wouters | 2006-02-27 | 1 | -3/+3 |
| |