diff options
author | Travis E. Oliphant <oliphant@enthought.com> | 2008-03-18 04:44:57 +0000 |
---|---|---|
committer | Travis E. Oliphant <oliphant@enthought.com> | 2008-03-18 04:44:57 +0000 |
commit | 3781aef8f8f992f78b31c7029004fa7b1ada7304 (patch) | |
tree | dfad9642ac35ed35b097ff3d8c939e8b83919d68 /Objects/exceptions.c | |
parent | 6d91be37586ba93cb7c5fa6d5da15cf5b9a19892 (diff) | |
download | cpython-git-3781aef8f8f992f78b31c7029004fa7b1ada7304.tar.gz |
Finish backporting new buffer API to Python 2.6. Left to do: memoryview object and structmodule. But, these need to be finished in Python 3.0 first. No objects support the new buffer API in Python 2.6 as of yet, and except for the memoryview object, I don't think they will.
Diffstat (limited to 'Objects/exceptions.c')
-rw-r--r-- | Objects/exceptions.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Objects/exceptions.c b/Objects/exceptions.c index aa9f516921..7fecb35cbf 100644 --- a/Objects/exceptions.c +++ b/Objects/exceptions.c @@ -1850,6 +1850,11 @@ SimpleExtendsException(PyExc_StandardError, ReferenceError, */ SimpleExtendsException(PyExc_StandardError, MemoryError, "Out of memory."); +/* + * BufferError extends StandardError + */ +SimpleExtendsException(PyExc_StandardError, BufferError, "Buffer error."); + /* Warning category docstrings */ |