New submission from DM <darkam...@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 <rep...@bugs.python.org>
<https://bugs.python.org/issue37144>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to