Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Bug #1177964: make file iterator raise MemoryError on too big files | Georg Brandl | 2006-03-31 | 1 | -1/+2 |
| | |||||
* | SF patch #1458476 with modifications based on discussions in python-dev. This | Barry Warsaw | 2006-03-30 | 1 | -1/+68 |
| | | | | | | adds the following API calls: PySet_Clear(), _PySet_Next(), and _PySet_Update(). The latter two are considered non-public. Tests and documentation (for the public API) are included. | ||||
* | Minor bugs in the __index__ code (PEP 357), with tests. | Armin Rigo | 2006-03-30 | 2 | -34/+24 |
| | |||||
* | That one was a mistake. | Georg Brandl | 2006-03-30 | 1 | -1/+1 |
| | |||||
* | Remove unnecessary casts in type object initializers. | Georg Brandl | 2006-03-30 | 20 | -271/+272 |
| | |||||
* | Fixed bug #1459029 - unicode reprs were double-escaped. | Anthony Baxter | 2006-03-30 | 1 | -1/+1 |
| | | | | Backed out an old patch from 2000. | ||||
* | fix a comment. | Armin Rigo | 2006-03-28 | 1 | -1/+1 |
| | |||||
* | Tighten an overbroad and misleading assertion. | Raymond Hettinger | 2006-03-26 | 1 | -1/+1 |
| | | | | (Reported by Jim Jewett.) | ||||
* | Get rid of warnings on some platforms by using %u for a size_t. | Neal Norwitz | 2006-03-25 | 1 | -1/+1 |
| | |||||
* | Support throw() of string exceptions. | Phillip J. Eby | 2006-03-25 | 1 | -1/+4 |
| | |||||
* | Stop duplicating code and handle slice indices consistently and correctly | Neal Norwitz | 2006-03-23 | 3 | -44/+24 |
| | | | | wrt to ssize_t. | ||||
* | Heh -- used the right format for a refcount, but forgot | Tim Peters | 2006-03-23 | 1 | -1/+1 |
| | | | | to stop truncating it. | ||||
* | _Py_NegativeRefcount(): print the full value of ob_refcnt. | Tim Peters | 2006-03-23 | 1 | -3/+2 |
| | |||||
* | Update function name to reflect params and stop casting to long to avoid ↵ | Neal Norwitz | 2006-03-20 | 1 | -5/+5 |
| | | | | losing data | ||||
* | Use macro versions instead of function versions when we already know the type. | Neal Norwitz | 2006-03-20 | 3 | -11/+12 |
| | | | | | | | | 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. | ||||
* | Previously, Python code had no easy way to access the contents of a | Georg Brandl | 2006-03-18 | 1 | -0/+19 |
| | | | | | cell object. Now, a ``cell_contents`` attribute has been added (closes patch #1170323). | ||||
* | Fix some missing checks after PyTuple_New, PyList_New, PyDict_New | Georg Brandl | 2006-03-17 | 2 | -1/+5 |
| | |||||
* | Introduced symbol PY_FORMAT_SIZE_T. See the new comments | Tim Peters | 2006-03-17 | 1 | -31/+22 |
| | | | | | in pyport.h. Changed PyString_FromFormatV() to use it instead of inlining its own maze of #if'ery. | ||||
* | Merge the tim-obmalloc branch to the trunk. | Tim Peters | 2006-03-16 | 1 | -205/+525 |
| | | | | | | | This is a heavily altered derivative of SF patch 1123430, Evan Jones's heroic effort to make obmalloc return unused arenas to the system free(), with some heuristic strategies to make it more likley that arenas eventually _can_ be freed. | ||||
* | Fix and test (manually w/xx module) passing NULLs to PyObject_Str() and | Neal Norwitz | 2006-03-14 | 1 | -5/+7 |
| | | | | | | | | | | | | | PyObject_Unicode(). This problem was originally reported from Coverity and addresses mail on python-dev "checkin r43015". This inlines the conversion of the string to unicode and cleans up/simplifies some code at the end of the PyObject_Unicode(). We really need a complete C API test module for all public APIs and passing good and bad parameter values. Will backport. | ||||
* | Fix bug found by Coverity: don't allow NULL argument to PyUnicode_CheckExact | Georg Brandl | 2006-03-13 | 1 | -2/+2 |
| | |||||
* | - Reindent a confusingly indented piece of code (no intended code changes | Thomas Wouters | 2006-03-12 | 1 | -13/+16 |
| | | | | | | | | | there) - Add missing DECREFs of inner-scope 'temp' variable - Add various missing DECREFs by changing 'return NULL' into 'goto onError' - Avoid double DECREF when last _PyUnicode_Resize() fails Coverity found one of the missing DECREFs, but oddly enough not the others. | ||||
* | Um, I thought I'd already checked this in. | Guido van Rossum | 2006-03-10 | 1 | -26/+1 |
| | | | | | | | 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. | ||||
* | Fix three nits found by Coverity, adding null checks and comments. | Guido van Rossum | 2006-03-10 | 1 | -3/+15 |
| | |||||
* | Update Unicode database to Unicode 4.1. | Martin v. Löwis | 2006-03-09 | 2 | -651/+830 |
| | |||||
* | Patch #1434038: property() now uses the getter's docstring if there is | Georg Brandl | 2006-03-08 | 1 | -0/+12 |
| | | | | | no "doc" argument given. This makes it possible to legitimately use property() as a decorator to produce a read-only property. | ||||
* | Checking in the code for PEP 357. | Guido van Rossum | 2006-03-07 | 9 | -68/+180 |
| | | | | | | 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). | ||||
* | SF #1444030: Fix several potential defects found by Coverity. | Hye-Shik Chang | 2006-03-07 | 4 | -11/+30 |
| | | | | (reviewed by Neal Norwitz) | ||||
* | Change int to Py_ssize_t in several places. | Martin v. Löwis | 2006-03-07 | 5 | -10/+19 |
| | | | | | Add (int) casts to silence compiler warnings. Raise Python exceptions for overflows. | ||||
* | Oops, forgot to include this in the last checkin. | Neal Norwitz | 2006-03-04 | 1 | -1/+1 |
| | | | | Actually define Py_RefTotal as a Py_ssize_t. | ||||
* | Change some sequnce APIs to use Py_ssize_t. | Neal Norwitz | 2006-03-04 | 1 | -5/+9 |
| | |||||
* | Use Py_ssize_t for PySet_Size() like all the other Py*_Size() functions. | Neal Norwitz | 2006-03-04 | 1 | -1/+1 |
| | |||||
* | Use %ld and casts to long for refcount printing, in absense of a universally | Thomas Wouters | 2006-03-01 | 3 | -12/+31 |
| | | | | | available %zd format character. Mark with an XXX comment so we can fix this, later. | ||||
* | PEP 352 implementation. Creates a new base class, BaseException, which has an | Brett Cannon | 2006-03-01 | 1 | -3/+3 |
| | | | | | | | | | 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. | ||||
* | Updates to the with-statement: | Guido van Rossum | 2006-02-28 | 1 | -3/+37 |
| | | | | | | | | | | | | | | | | - 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. | ||||
* | Revert backwards-incompatible const changes. | Martin v. Löwis | 2006-02-27 | 20 | -23/+23 |
| | |||||
* | Oops. Fix syntax for C89 compilers. | Guido van Rossum | 2006-02-25 | 1 | -2/+2 |
| | |||||
* | - Patch 1433928: | Guido van Rossum | 2006-02-25 | 1 | -1/+15 |
| | | | | | | | | - The copy module now "copies" function objects (as atomic objects). - dict.__getitem__ now looks for a __missing__ hook before raising KeyError. - Added a new type, defaultdict, to the collections module. This uses the new __missing__ hook behavior added to dict (see above). | ||||
* | RFE #1436243: make integers in [0..256] preallocated. | Georg Brandl | 2006-02-22 | 1 | -1/+1 |
| | |||||
* | Make staticmethod and classmethod complain about keyword args. | Georg Brandl | 2006-02-21 | 1 | -0/+4 |
| | |||||
* | Bug #1086854: Rename PyHeapType members adding ht_ prefix. | Georg Brandl | 2006-02-20 | 1 | -9/+9 |
| | |||||
* | Remove size constraints in SLICE opcodes. | Martin v. Löwis | 2006-02-17 | 1 | -3/+3 |
| | |||||
* | Use proper PyArg_Parse format char for Py_ssize_t, instead of 'l', in | Thomas Wouters | 2006-02-16 | 1 | -1/+1 |
| | | | | | buffer_new(). Probably fixes a bug in 'buffer("", 10, 10)' on platforms where sizeof(Py_ssize_t) != sizeof(long) (Win64?) | ||||
* | Use correct PyArg_Parse format char for Py_ssize_t in unicode.center(). | Thomas Wouters | 2006-02-16 | 1 | -1/+1 |
| | | | | | | | | | | | Fixes: >>> u"".center(10) Traceback (most recent call last): File "<stdin>", line 1, in <module> MemoryError on 64-bit systems. | ||||
* | Use Py_ssize_t in helper function between Py_ssize_t-using functions. | Thomas Wouters | 2006-02-16 | 1 | -2/+2 |
| | |||||
* | Use Py_ssize_t for counts and sizes. | Martin v. Löwis | 2006-02-16 | 10 | -31/+33 |
| | | | | Convert Py_ssize_t using PyInt_FromSsize_t | ||||
* | Oops, this is supposed to be disabled by default. | Neal Norwitz | 2006-02-16 | 1 | -1/+1 |
| | |||||
* | Revert 42400. | Martin v. Löwis | 2006-02-16 | 5 | -11/+11 |
| | |||||
* | Support %zd in PyErr_Format and PyString_FromFormat. | Martin v. Löwis | 2006-02-16 | 8 | -19/+35 |
| | |||||
* | Get rid of compiler warnings (gcc 3.3.4 on x86) | Neal Norwitz | 2006-02-16 | 5 | -11/+11 |
| |