Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #100488
| From | Dennis Lee Bieber <wlfraed@ix.netcom.com> |
|---|---|
| Newsgroups | comp.lang.python |
| Subject | Re: subprocess.call with non-ASCII arguments? |
| Date | 2015-12-15 21:20 -0500 |
| Organization | IISS Elusive Unicorn |
| Message-ID | <mailman.45.1450232442.22044.python-list@python.org> (permalink) |
| References | <n4p7te$jrg$1@news2.informatik.uni-stuttgart.de> <mailman.22.1450191839.22044.python-list@python.org> <n4pk9u$mc7$2@news2.informatik.uni-stuttgart.de> |
On Tue, 15 Dec 2015 17:57:18 +0000 (UTC), Ulli Horlacher
<framstag@rus.uni-stuttgart.de> declaimed the following:
>Dennis Lee Bieber <wlfraed@ix.netcom.com> wrote:
>
>> Python has a zipfile library that is portable between OS. Along with
>> libraries for gzip, bzip2, and tarfiles...
>
>Ohh.. this is new to me!
>
>https://docs.python.org/2/library/tarfile.html
>https://docs.python.org/2/library/zipfile.html
>
>What is missing in the documentation:
>Is the tar/zip file generation done in memory or will it be written
>directly to disk?
>
From the help file...
"""
class zipfile.ZipFile(file[, mode[, compression[, allowZip64]]])
Open a ZIP file, where file can be either a path to a file (a string) or a
file-like object.
"""
I'd interpret that to mean that it tends to work with an on-disk file.
If you've given it a file name for the archive it likely is not building a
memory image and writing it all only when closed.
"""
ZipFile.write(filename[, arcname[, compress_type]])
Write the file named filename to the archive, giving it the archive name
arcname (by default, this will be the same as filename, but without a drive
letter and with leading path separators removed).
"""
I'll admit it is not clear if the individual file is first compressed
in memory and then appended to disk file (I'm not that up on the internals
of ZIP files; a true TAR file is just a concatenation of uncompressed
files; .tar.gz indicates that the concatenated file is subsequently
compressed).
--
Wulfraed Dennis Lee Bieber AF6VN
wlfraed@ix.netcom.com HTTP://wlfraed.home.netcom.com/
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
subprocess.call with non-ASCII arguments? Ulli Horlacher <framstag@rus.uni-stuttgart.de> - 2015-12-15 14:25 +0000
Re: subprocess.call with non-ASCII arguments? Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2015-12-15 10:03 -0500
Re: subprocess.call with non-ASCII arguments? Ulli Horlacher <framstag@rus.uni-stuttgart.de> - 2015-12-15 17:57 +0000
Re: subprocess.call with non-ASCII arguments? Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2015-12-15 21:20 -0500
Re: subprocess.call with non-ASCII arguments? Ulli Horlacher <framstag@rus.uni-stuttgart.de> - 2015-12-16 12:44 +0000
Re: subprocess.call with non-ASCII arguments? wxjmfauth@gmail.com - 2015-12-16 06:55 -0800
Re: subprocess.call with non-ASCII arguments? Ulli Horlacher <framstag@rus.uni-stuttgart.de> - 2015-12-15 15:05 +0000
Re: subprocess.call with non-ASCII arguments? Laura Creighton <lac@openend.se> - 2015-12-15 16:08 +0100
csiph-web