summaryrefslogtreecommitdiffstats
path: root/Python
Commit message (Collapse)AuthorAgeFilesLines
...
* Fix a ssize_t issueNeal Norwitz2006-03-231-1/+1
|
* Forward port MvL's fix in 43227:Neal Norwitz2006-03-231-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 Norwitz2006-03-202-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örwald2006-03-181-4/+2
|
* Fix some missing checks after PyTuple_New, PyList_New, PyDict_NewGeorg Brandl2006-03-171-1/+3
|
* Fix bug 1441408 where a double colon didn't trigger extended slice semantics ↵Nick Coghlan2006-03-171-8/+12
| | | | (applies patch 1452332)
* Fix wrong argument format in PyCodec_IncrementalEncoder() andWalter Dörwald2006-03-161-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 Norwitz2006-03-161-10/+10
| | | | use macro version of SetItem since we know everything is setup.
* Patch #1436130: codecs.lookup() now returns a CodecInfo object (a subclassWalter Dörwald2006-03-151-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 Coghlan2006-03-131-24/+29
| | | | continue to be handled correctly
* Um, I thought I'd already checked this in.Guido van Rossum2006-03-103-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 Norwitz2006-03-091-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 Rossum2006-03-071-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 Rossum2006-03-071-1/+2
| | | | but an earlier line checked for v != NULL unnecessarily.
* SF #1444030: Fix several potential defects found by Coverity.Hye-Shik Chang2006-03-073-2/+11
| | | | (reviewed by Neal Norwitz)
* Change int to Py_ssize_t in several places.Martin v. Löwis2006-03-075-18/+34
| | | | | Add (int) casts to silence compiler warnings. Raise Python exceptions for overflows.
* Fix warnings on x86 (32-bit).Neal Norwitz2006-03-061-1/+2
|
* Try to cleanup the error handling a bit so there aren't false positivesNeal Norwitz2006-03-061-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öwis2006-03-051-1/+1
|
* Use Py_ssize_t for _Py_RefTotal.Neal Norwitz2006-03-042-7/+13
| | | | I tried to handle Win64 properly, but please review.
* TabifyNeal Norwitz2006-03-041-34/+34
|
* Get rid of run_err_mod(). It was only used in two places.Neal Norwitz2006-03-041-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 Norwitz2006-03-031-3/+4
| | | | Add it back.
* Remove commented codeNeal Norwitz2006-03-031-24/+1
|
* Text moved to PEP 339.Brett Cannon2006-03-021-507/+0
|
* Fix minor docstring typo.Brett Cannon2006-03-021-1/+1
|
* Document the purpose of the struct _block members.Tim Peters2006-03-021-1/+18
|
* Added words about what PyArena_Malloc() does.Tim Peters2006-03-021-1/+1
|
* Trimmed trailing whitespace.Tim Peters2006-03-021-6/+6
|
* Fix refleak in PyErr_Display().Brett Cannon2006-03-021-15/+14
|
* Fix refleak if from __future__ import was not firstNeal Norwitz2006-03-021-0/+1
|
* Use Py_ssize_t since we are working with list size belowNeal Norwitz2006-03-021-1/+1
|
* Add a missing Py_DECREF to BaseException__unicode__ .Brett Cannon2006-03-021-2/+8
|
* Update known issues to reflect realityNeal Norwitz2006-03-021-4/+1
|
* Fix memory leak on attributes.Martin v. Löwis2006-03-021-5/+13
|
* Make Py_ssize_t clean.Thomas Wouters2006-03-011-1/+3
|
* Patch #1440601: Add col_offset attribute to AST nodes.Martin v. Löwis2006-03-013-134/+211
|
* Fix incompatible assignment warning from previous checkin.Thomas Wouters2006-03-011-1/+2
|
* Fix gcc (4.0.x) warning about use of uninitialized variables.Thomas Wouters2006-03-011-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 Cannon2006-03-011-7/+2
|
* Fix uninitialized value. (Why are we using bools instead of ints, like we doThomas Wouters2006-03-011-1/+1
| | | | everywhere else?)
* Fix more memory leaks. Will backport to 2.4.Martin v. Löwis2006-03-011-1/+5
|
* Fix C99-ism, and add XXX to commentThomas Wouters2006-03-011-1/+1
|
* Reconst parameters that lost their const in the AST merge.Martin v. Löwis2006-03-011-1/+1
|
* Tabify and reflow some long lines.Jeremy Hylton2006-03-011-696/+702
| | | | | Much of the peephole optimizer is now indented badly, but it's about to be revised anyway.
* Add missing DECREF.Jeremy Hylton2006-03-011-1/+5
|
* Use %zd format characters for Py_ssize_t types.Thomas Wouters2006-03-011-6/+6
|
* Put back the essence of Jeremy's original XXX comment.Thomas Wouters2006-03-011-1/+3
|
* PEP 352 implementation. Creates a new base class, BaseException, which has anBrett Cannon2006-03-015-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öwis2006-03-011-2/+2
|