[issue14013] tarfile should expose supported formats
report at bugs.python.org
Sat Feb 18 19:10:04 CET 2012
Lars Gustäbel <lars at gustaebel.de> added the comment:
I think this is a reasonable proposal. I think it is good style to let tarfile figure out which supported compression methods are available instead of shutil or the user. So far I have no objections.
Following 3.3's crypt module, I think the name `methods' is superior to `formats' (maybe `compression_methods' is even better). Also, crypt's concept of a sorted list from stronger to weaker could also make sense here: ["xz", "bz2", "gz"]. Why not?
Python tracker <report at bugs.python.org>
More information about the Python-bugs-list