[Python-ideas] Move tarfile.filemode() into stat module

Antoine Pitrou solipsis at pitrou.net
Sat May 12 16:41:10 CEST 2012


On Sat, 12 May 2012 16:29:35 +0200
Giampaolo Rodolà <g.rodola at gmail.com>
wrote:
> http://hg.python.org/cpython/file/9d9495fabeb9/Lib/tarfile.py#l304
> I discovered this undocumented function by accident different years
> ago and reused it a couple of times since then.
> I think that leaving it hidden inside tarfile module is unfortunate.
> What about moving it into stat module and document it?

I don't know which of stat or shutil would be the better recipient, but
it's a good idea anyway.

Regards

Antoine.





More information about the Python-ideas mailing list