# Bug report I believe `tell` should never be negative, even for `/dev/urandom`. And @benjaminp wrote [ToDo](https://github.com/python/cpython/blob/cc9160a29bc3356ced92348bcd8e6668c67167c9/Modules/_io/bufferedio.c#L1189) 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 <!-- gh-linked-prs --> ### Linked PRs * gh-99709 * gh-115599 * gh-115600 <!-- /gh-linked-prs -->
Bug report
I believe
tellshould never be negative, even for/dev/urandom. And @benjaminp wrote ToDo that it shouldn't be negative.Environment
Fedora linux, python 3.10.6
Linked PRs
io.BufferedReader.telletc. being able to return offsets < 0 #99709