[New-bugs-announce] [issue37144] tarfile.open: improper handling of path-like object

DM report at bugs.python.org
Mon Jun 3 10:54:20 EDT 2019


New submission from DM <darkamaul at hotmail.fr>:

According to the documentation, tarfile.open accepts a path-like object since Python 3.6

However, it is not the case when writing a compressed gzip (w|gz).
See the attached file for minimal POC

Note 1: tested on 3.6 and 3.7
Note 2: https://docs.python.org/3.6/library/tarfile.html#tarfile.open

----------
components: Library (Lib)
files: poc.py
messages: 344423
nosy: dm
priority: normal
severity: normal
status: open
title: tarfile.open: improper handling of path-like object
type: behavior
versions: Python 3.6, Python 3.7
Added file: https://bugs.python.org/file48386/poc.py

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue37144>
_______________________________________


More information about the New-bugs-announce mailing list