[docs] [issue18262] ZipInfo.external_attr are not documented

Ronald Oussoren report at bugs.python.org
Wed Jun 19 10:24:16 CEST 2013


Ronald Oussoren added the comment:

I'd be +1 on extending the zipfile API in 3.4 (with a documentation update in older releases as suggested by anatoly):

* Add a method or property to ZipInfo for (un)packing 
  the external_attr field

* Add an keyword argument to Zipfile.extract and Zipfile.extractall that
  toggles restoring file permissions. This should be off by default for
  backward compatibility.

  The code that restores the file permissions should be careful to avoid
  security problems, IMHO it should by default ignore the SUID en SGID
  bits.

----------
components: +Library (Lib)
nosy: +ronaldoussoren
stage:  -> needs patch
type:  -> enhancement
versions:  -Python 3.5

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


More information about the docs mailing list