]> granicus.if.org Git - python/commit
Indicate that seek and tell are mandatory on BufferedRandom. (GH-11216)
authorChristopher Head <chead@chead.ca>
Fri, 12 Apr 2019 15:50:41 +0000 (08:50 -0700)
committerBenjamin Peterson <benjamin@python.org>
Fri, 12 Apr 2019 15:50:40 +0000 (08:50 -0700)
commitb13552c4d7ce68fc9e61b5ade03cb5b951349c2b
treeb4365351f6ef3028c7f7468a096508c33ee240d4
parentb015fc86f7b1f35283804bfee788cce0a5495df7
Indicate that seek and tell are mandatory on BufferedRandom. (GH-11216)

For BufferedReader and BufferedWriter, seek and tell operations are
optional (they may or may not exist based on the underlying stream). For
BufferedRandom, they are mandatory: a BufferedRandom should not be
constructed over an unseekable underlying stream. Document this.
Doc/library/io.rst