Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork33.7k
Closed
Description
Bug report
I believetell should never be negative, even for/dev/urandom. And@benjaminp wroteToDo 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()-4095Environment
Fedora linux, python 3.10.6