New submission from Gavin D'souza <gavin...@gmail.com>:

Related library: zipfile

Since zipfile allows relative dotted paths too, should shell-like paths, 
specifically with ~ (tilde) be allowed too?

This feels like unexpected behaviour and confusing for users as method 
"is_zipfile" returns False in case path doesn't exist as well. So, 
zipfile.is_zipfile("~/incorrect/path/to/zip") as well as 
zipfile.is_zipfile("~/path/to/zip") will return False

----------
components: Library (Lib)
messages: 366297
nosy: gavin
priority: normal
severity: normal
status: open
title: Allow shell like paths in
type: behavior
versions: Python 2.7, Python 3.5, Python 3.6, Python 3.7, Python 3.8, Python 3.9

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue40271>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to