-
- Notifications
You must be signed in to change notification settings - Fork 33.6k
Closed
Labels
extension-modulesC modules in the Modules dirC modules in the Modules dirtopic-IOtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
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
Linked PRs
Metadata
Metadata
Assignees
Labels
extension-modulesC modules in the Modules dirC modules in the Modules dirtopic-IOtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error