[issue18281] tarfile defines stat constants

STINNER Victor report at bugs.python.org
Sun Jun 23 01:18:08 CEST 2013


STINNER Victor added the comment:

Interesting commit:

changeset:   76949:492e6c6a01bb
user:        Giampaolo Rodola' <g.rodola at gmail.com>
date:        Tue May 15 15:30:25 2012 +0200
files:       Doc/library/stat.rst Doc/whatsnew/3.3.rst Lib/stat.py Lib/tarfile.py Lib/test/test_stat.py Misc/NEWS
description:
#14807: move undocumented tarfile.filemode() to stat.filemode(). Add tarfile.filemode alias with deprecation warning.

> I would like to replace them with values from the stat module

I would prefer to simply drop all these constants. None is used by the tarfile module. *If* an application uses tarfile to get stat constants, this application must be fixed to use the stat module which contain thse constants since the creation of the stat module, something like 23 years ago...

changeset:   20:118545312f3b
branch:      legacy-trunk
user:        Guido van Rossum <guido at python.org>
date:        Sun Oct 21 16:17:08 1990 +0000
files:       Lib/stat.py
description:
Initial revision

----------
nosy: +haypo

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


More information about the Python-bugs-list mailing list