Re: [Tutor] Removing a file from a tar

2007-06-28 Thread Jacob S.
>* Adam A. Zajac <[EMAIL PROTECTED]> [2007-06-27 11:26]: >> I was reading over the documentation for the tarfile module and it >> occurred to me that there didn't seem to be a way to remove an >> individual file from the tar. >> >> For example, suppose I did this: >> >> import tarfile >> tar = tarf

Re: [Tutor] Removing a file from a tar

2007-06-27 Thread David Rock
* Adam A. Zajac <[EMAIL PROTECTED]> [2007-06-27 11:26]: > I was reading over the documentation for the tarfile module and it > occurred to me that there didn't seem to be a way to remove an > individual file from the tar. > > For example, suppose I did this: > > import tarfile > tar = tarfile.ope

[Tutor] Removing a file from a tar

2007-06-27 Thread Adam A. Zajac
I was reading over the documentation for the tarfile module and it occurred to me that there didn't seem to be a way to remove an individual file from the tar. For example, suppose I did this: import tarfile tar = tarfile.open("sample.tar", "w") tar.add("unwanted") tar.add("wanted") tar.close()