Closed
Description
Bug report
I believe tell
should never be negative, even for /dev/urandom
. And @benjaminp wrote ToDo that it shouldn't be negative.
>>> from pathlib import Path
>>> urandom = Path('/dev/urandom').open('rb')
>>> urandom.tell()
0
>>> urandom.read(1)
b'$'
>>> urandom.tell()
-4095
Environment
Fedora linux, python 3.10.6