[New-bugs-announce] [issue29435] Allow to pass fileobj to is_tarfile

Thom Wiggers report at bugs.python.org
Fri Feb 3 09:37:33 EST 2017


New submission from Thom Wiggers:

The tarfile.is_tarfile() function only supports opening from paths. However, the `Tarfile` class also supports opening from `fileobj`s. It would be useful if the is_tarfile function would also accept those.

For reference, this is the current implementation: https://github.com/python/cpython/blob/fcc3915a266b6cd220483c7020de0d71e293b2cb/Lib/tarfile.py#L2432

----------
components: Library (Lib)
messages: 286869
nosy: twiggers
priority: normal
severity: normal
status: open
title: Allow to pass fileobj to is_tarfile
type: enhancement

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue29435>
_______________________________________


More information about the New-bugs-announce mailing list