Index: stringobject.c =================================================================== RCS file: /cvsroot/python/python/dist/src/Objects/stringobject.c,v retrieving revision 2.198 diff -c -r2.198 stringobject.c *** stringobject.c 6 Dec 2002 12:48:52 -0000 2.198 --- stringobject.c 12 Dec 2002 19:45:39 -0000 *************** *** 1238,1243 **** --- 1238,1256 ---- return self->ob_size; } + static size_t + string_getlockedreadbuffer(PyStringObject *self, const void **ptr) + { + *ptr = (void *)self->ob_sval; + return self->ob_size; + } + + static void + string_releaselockedbuffer(PyStringObject *self) + { + return; + } + static PySequenceMethods string_as_sequence = { (inquiry)string_length, /*sq_length*/ (binaryfunc)string_concat, /*sq_concat*/ *************** *** 1260,1265 **** --- 1273,1281 ---- (getwritebufferproc)string_buffer_getwritebuf, (getsegcountproc)string_buffer_getsegcount, (getcharbufferproc)string_buffer_getcharbuf, + (acquirelockedreadbufferproc)string_getlockedreadbuffer, + (acquirelockedwritebufferproc)0, + (releaselockedbufferproc)string_releaselockedbuffer, };