Lines Matching defs:whence
675 _buffered_raw_seek(buffered *self, Py_off_t target, int whence)
683 whenceobj = PyLong_FromLong(whence);
1196 whence: int = 0
1201 _io__Buffered_seek_impl(buffered *self, PyObject *targetobj, int whence)
1212 if ((whence < 0 || whence >2)
1214 && (whence != SEEK_HOLE)
1217 && (whence != SEEK_DATA)
1221 "whence value %d unsupported", whence);
1235 buffer. Other whence values must be managed without this optimization.
1238 if (((whence == 0) || (whence == 1)) && self->readable) {
1243 Don't know how to do that when whence == 2, though. */
1250 if (whence == 0)
1273 if (whence == 1)
1275 n = _buffered_raw_seek(self, target, whence);