Change stream position. Change the stream position to byte offset pos. Argument pos is interpreted relative to the position indicated by whence. Values for whence are ints: * 0 -- start of stream (the default); offset should be zero or positive * 1 -
(self, pos, whence=0)
| 370 | ### Positioning ### |
| 371 | |
| 372 | def seek(self, pos, whence=0): |
| 373 | """Change stream position. |
| 374 | |
| 375 | Change the stream position to byte offset pos. Argument pos is |
| 376 | interpreted relative to the position indicated by whence. Values |
| 377 | for whence are ints: |
| 378 | |
| 379 | * 0 -- start of stream (the default); offset should be zero or positive |
| 380 | * 1 -- current stream position; offset may be negative |
| 381 | * 2 -- end of stream; offset is usually negative |
| 382 | Some operating systems / file systems could provide additional values. |
| 383 | |
| 384 | Return an int indicating the new absolute position. |
| 385 | """ |
| 386 | self._unsupported("seek") |
| 387 | |
| 388 | def tell(self): |
| 389 | """Return an int indicating the current stream position.""" |