summaryrefslogtreecommitdiffstats
path: root/Objects/memoryobject.c
Commit message (Collapse)AuthorAgeFilesLines
* SF #1777057, fix memoryview('test') so it works in debug mode too.Neal Norwitz2007-08-191-30/+18
| | | | | | | Also return a boolean for the readonly flag. Other cleanup: make sure to set an exception when returning NULL and reformat the getsets to be shorter by putting them all on one line.
* Code review of the new buffer protocol. Mostly add questions that shouldNeal Norwitz2007-08-191-16/+13
| | | | | | | | | | | be answered with the comments removed. There are many places that require checks when doing arithmetic for memory sizes when allocating memory. Otherwise, overflow is possible with a subsequent crash. Fix SF #1777057 which was a result of not initializing the new BufferError properly. Had to update the test for exceptions for BufferError too.
* Merged in py3k-buffer branch to main line. All objects now use the buffer ↵Travis E. Oliphant2007-08-181-0/+540
protocol in PEP 3118.