[issue32866] zipimport loader.get_data() requires absolute zip file path

Barry A. Warsaw report at bugs.python.org
Thu Jan 17 13:39:23 EST 2019


Barry A. Warsaw <barry at python.org> added the comment:

I believe this bug does not affect Python 3.8:

(Using a Python 3.8 virtualenv):

% python demo.pyz 
Reading: resource.txt
Length: 19
% python `pwd`/demo.pyz 
Reading: resource.txt
Length: 19

I think it's too risky (and too much work, given it would have to be ported to the C implementation of zipimport) to change this in earlier Pythons.  So, closing.

----------
resolution:  -> works for me
stage:  -> resolved
status: open -> closed
versions:  -Python 3.6, Python 3.7

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


More information about the Python-bugs-list mailing list