[Patches] [ python-Patches-918101 ] tarfile.py enhancements
SourceForge.net
noreply at sourceforge.net
Wed Jul 21 00:31:03 CEST 2004
Patches item #918101, was opened at 2004-03-17 10:59
Message generated for change (Comment added) made by nnorwitz
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=918101&group_id=5470
Category: Library (Lib)
>Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Lars Gustäbel (gustaebel)
Assigned to: Nobody/Anonymous (nobody)
Summary: tarfile.py enhancements
Initial Comment:
I still develop tarfile.py sporadically on a separate
branch (http://www.gustaebel.de/lars/tarfile/), and so
there are two features from this branch that I'd like
to propose for inclusion in Python's tarfile.py:
1. Overcoming the 8GB file size limit (8GB-limit.patch)
At the moment it is not possible to add files to a tar
archive that exceed 8GB size. Although this is POSIX
compliant, GNU tar offers an extension header for
largefiles that encodes file sizes in an 88-bit number
instead of the common 11-digits octal number. Like all
other GNU extensions in tarfile.py, this feature is
turned on and off using the TarFile.posix attribute.
2. Automatic compression detection for the stream
interface (stream-detect-compr.patch)
tarfile.py's stream interface (which can be used to
access tape devices or simply read a tar from stdin) is
a bit difficult to use because it's not able to detect
whether an archive is compressed or not. Compression
has to be explicitly specified using mode ("r|",
"r|gz", "r|bz2"). The patch introduces a fourth mode
"r|*" that makes automatic detection possible.
Both patches are not vitally important, but especially
the 8GB-patch is useful IMO.
----------------------------------------------------------------------
>Comment By: Neal Norwitz (nnorwitz)
Date: 2004-07-20 18:31
Message:
Logged In: YES
user_id=33168
Lars, could you look at bug 949052 and provide any guidance?
Thanks.
----------------------------------------------------------------------
Comment By: Neal Norwitz (nnorwitz)
Date: 2004-07-20 18:28
Message:
Logged In: YES
user_id=33168
I checked in the 8GB limit patch. Lib/tarfile.py 1.14.
I didn't check in the stream patch for 2 reasons:
1) I don't know the need. Is this common? I've never heard
of it.
2) The type parameter name was changed to comtype. I wasn't
sure if this was necessary. It potentially (albeit
unlikely) could break a program. I'm not concerned about
changing the name of attribute.
Lars, can you provide a good reason to add this part of the
patch? If it's not likely to be used, I don't think it
should be added. If it is added, there should also be a test.
Thanks.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=918101&group_id=5470
More information about the Patches
mailing list