[issue6054] tarfile normalizes arcname

2009-08-28 Thread Lars Gustäbel
Lars Gustäbel added the comment: I have done some research in order to find a suitable behaviour for tarfile. I wrote a script to test to what extent all the different tar implementations transform input pathnames. The results can be found at http://www.gustaebel.de/lars/tarfile/wwgtd.html. My

[issue6818] remove/delete method for zipfile/tarfile objects

2009-09-02 Thread Lars Gustäbel
Lars Gustäbel added the comment: -1, although I can only speak for tarfile. Removing members from a tar archive sounds obvious and easy but it is *not*. A file in an archive is stored as a header block (that contains the metadata) followed by a number of data blocks (that contain the file&#

[issue6856] allow setting uid and gid when creating tar files

2009-09-07 Thread Lars Gustäbel
Lars Gustäbel added the comment: TarInfo does not need set_uid() or set_gid() methods, both can be set using the uid and gid attributes. If the list of files to add to the archive is known you can do this: tar = tarfile.open("foo.tar.gz", "w:gz") for filename in

[issue6856] allow setting uid and gid when creating tar files

2009-09-07 Thread Lars Gustäbel
Lars Gustäbel added the comment: I do not quite see the benefit from the set_* methods. Although the attribute access I proposed may be slightly more complicated (because you might need the pwd and grp modules) it offers the most freedom. Let's take the set_uid() method as an example

[issue6856] allow setting uid and gid when creating tar files

2009-09-12 Thread Lars Gustäbel
Lars Gustäbel added the comment: I applied the patch with some more small fixes to the trunk (r74750) and the py3k branch (r74751). -- resolution: -> accepted status: open -> closed ___ Python tracker <http://bugs.python.org/

[issue7101] tarfile: OSError with TarFile.add(..., recursive=True) about non-existing file

2009-10-13 Thread Lars Gustäbel
Changes by Lars Gustäbel : -- assignee: -> lars.gustaebel nosy: +lars.gustaebel ___ Python tracker <http://bugs.python.org/issue7101> ___ ___ Python-bugs-lis

[issue7232] Support of 'with' statement fo TarFile class

2009-10-29 Thread Lars Gustäbel
Lars Gustäbel added the comment: Please clean up the patch, and I take another look at it. -- assignee: -> lars.gustaebel nosy: +lars.gustaebel ___ Python tracker <http://bugs.python.org/iss

[issue4750] tarfile keeps excessive dir structure in compressed files

2009-10-29 Thread Lars Gustäbel
Lars Gustäbel added the comment: The latest patch (4750.gzip.basename.fix.diff) cannot be used the way it is. The problem is that it uses the name attribute to store the basename with the .gz extension stripped. This breaks compatibility

[issue4750] tarfile keeps excessive dir structure in compressed files

2009-10-29 Thread Lars Gustäbel
Lars Gustäbel added the comment: I fixed it in r75935 and r75937. -- resolution: -> accepted status: open -> closed ___ Python tracker <http://bugs.python.org/

[issue5500] tarfile: path problem in arcname under windows

2009-10-29 Thread Lars Gustäbel
Lars Gustäbel added the comment: I suppose this issue is related to issue4750 which I have just closed. If not, please reopen this issue. -- resolution: -> duplicate status: open -> closed ___ Python tracker <http://bugs.python.org/

[issue7295] test_tarfile uses a hardcoded file name

2009-11-10 Thread Lars Gustäbel
Lars Gustäbel added the comment: I attached a patch that uses TESTFN. Please verify that it works and then one of us checks it in. -- keywords: +patch Added file: http://bugs.python.org/file15304/issue7295.diff ___ Python tracker <h

[issue7341] test_tarfile failing (file in use when deleting) on Windows buildbots

2009-11-18 Thread Lars Gustäbel
Lars Gustäbel added the comment: Any idea why the 2.x buildbots aren't failing? The code is basically the same. Coincidence? The patch is okay. Still, I have attached another version of it with a slightly smaller try-except clause. Is it feasible to test if the patch actually solve

[issue7341] test_tarfile failing (file in use when deleting) on Windows buildbots

2009-11-18 Thread Lars Gustäbel
Lars Gustäbel added the comment: Alright then. I applied the change to the trunk (r76381) and py3k (r76383). What about release26-maint and release31-maint? IMO this is not necessary. -- ___ Python tracker <http://bugs.python.org/issue7

[issue7341] test_tarfile failing (file in use when deleting) on Windows buildbots

2009-11-18 Thread Lars Gustäbel
Lars Gustäbel added the comment: I have always tried to be very conservative with backporting stuff that is not clearly a bugfix but alters any kind of behaviour. I am always very concerned about compatibility, especially if code has been around for as long as this code has. But as I don't

[issue7341] test_tarfile failing (file in use when deleting) on Windows buildbots

2009-11-18 Thread Lars Gustäbel
Lars Gustäbel added the comment: Mmm, chocolate... ;-) Okay, consider it done. -- resolution: -> accepted status: open -> closed ___ Python tracker <http://bugs.python.org/

[issue7357] tarfile doesn't detect disk full error on extraction

2009-11-19 Thread Lars Gustäbel
Lars Gustäbel added the comment: The TarFile constructor (as well as tarfile.open) takes an errorlevel keyword argument. See http://docs.python.org/dev/library/tarfile.html#tarfile-objects I quote: "If errorlevel is 0, all errors are ignored when using TarFile.extract(). Nevertheless,

[issue6123] tarfile: opening an empty tar file fails

2009-11-22 Thread Lars Gustäbel
Lars Gustäbel added the comment: I have checked in a fix for this problem: trunk (r76443) and py3k (r76444). Thank you very much for your report. Sorry that it took that long to get it fixed. -- resolution: -> accepted status: open ->

[issue7357] tarfile doesn't detect disk full error on extraction

2009-12-13 Thread Lars Gustäbel
Lars Gustäbel added the comment: I changed the default value for the errorlevel argument, so that fatal errors are now raised as regular exceptions by default (trunk: r76780, py3k: r76782). Thank you very much for bringing up this issue. -- resolution: -> accepted status: o

[issue7693] tarfile.extractall can't have unicode extraction path

2010-01-13 Thread Lars Gustäbel
Changes by Lars Gustäbel : -- assignee: -> lars.gustaebel nosy: +lars.gustaebel ___ Python tracker <http://bugs.python.org/issue7693> ___ ___ Python-bugs-lis

[issue7693] tarfile.extractall can't have unicode extraction path

2010-01-15 Thread Lars Gustäbel
Lars Gustäbel added the comment: In the 2.x branch tarfile is not prepared to deal with unicode pathnames at all. This changed in Python 3. The fact that it works anyway (in the majority of cases) to add filenames as unicode objects is pure coincidence - I suppose you have a utf-8 system

[issue7693] tarfile.extractall can't have unicode extraction path

2010-01-15 Thread Lars Gustäbel
Lars Gustäbel added the comment: First, use a string pathname for extractall(). Most likely, your script is going to work. Convert all pathnames to strings using sys.getfilesystemencoding() before you add() them. Ensure that all systems you are going to use the archives on have the same

[issue7693] tarfile.extractall can't have unicode extraction path

2010-01-15 Thread Lars Gustäbel
Lars Gustäbel added the comment: I suppose you do not have a real problem here. I thought your problem was that you want to use unicode pathnames as input and output to tarfile. You don't need that. You want to transfer an archive from one system to another. You can do that with ta

[issue1676] Fork/exec issues with Tk 8.5/Python 2.5.1 on OS X

2009-02-24 Thread Lars Yencken
Changes by Lars Yencken : -- nosy: +lars512 ___ Python tracker <http://bugs.python.org/issue1676> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue5500] tarfile: path problem in arcname under windows

2009-03-18 Thread Lars Gustäbel
Lars Gustäbel added the comment: At the moment, I am unable to reproduce the problem you describe. I tried several combinations of what I think you could have meant, but everything seems to work okay here. Could you please provide some stand-alone testcase or code to illustrate that issue

[issue5068] tarfile loops forever on broken input

2009-03-22 Thread Lars Gustäbel
Lars Gustäbel added the comment: I just checked in a fix for the problem, r70523-70527. Thank you very much for your report. -- resolution: -> fixed status: open -> closed versions: +Python 2.5 ___ Python tracker <http://bugs.python.org/

[issue6054] tarfile normalizes arcname

2009-05-26 Thread Lars Gustäbel
Lars Gustäbel added the comment: So, what exactly are trying to accomplish? Why do you need that? -- ___ Python tracker <http://bugs.python.org/issue6

[issue6054] tarfile normalizes arcname

2009-05-26 Thread Lars Gustäbel
Lars Gustäbel added the comment: Apparently, the .deb file format is not explicit about that, but it seems to be common practice to have all files prefixed with './'. normpath is used all over tarfile, crucial are the occurrences in TarFile.add() and TarInfo.get_info(). As you'

[issue6196] tarfile.extractall(readaccess=True)

2009-06-05 Thread Lars Gustäbel
Lars Gustäbel added the comment: I am still not convinced why tarfile needs this kind of a work-around built in. We talk about a very small number of cases here and the generator_tools-0.3.5.tar.gz is really broken beyond repair. It is the only thing that should be fixed here IMO ;-) I agree

[issue6123] tarfile: opening an empty tar file fails

2009-06-05 Thread Lars Gustäbel
Lars Gustäbel added the comment: Thanks for the report. Empty archives are perfectly valid and tarfile should be able to read them without error. I will take care of this issue soon. -- assignee: -> lars.gustaebel nosy: +lars.gustaebel ___ Pyt

[issue6196] tarfile.extractall(readaccess=True)

2009-06-05 Thread Lars Gustäbel
Lars Gustäbel added the comment: Sure, tarfile contains numerous work-arounds for quirky and buggy archives. Otherwise, it would not be usable in real-life. But we should not mix up different issues here. tarfile reads and extracts your generator_tools.tar just fine. Formally, the data is okay

[issue6196] tarfile.extractall(readaccess=True)

2009-06-06 Thread Lars Gustäbel
Lars Gustäbel added the comment: I close this issue then. -- resolution: -> rejected status: open -> closed ___ Python tracker <http://bugs.python.org/

[issue6254] tarfile unnecessarily requires seekable files

2009-06-10 Thread Lars Gustäbel
Lars Gustäbel added the comment: If I am not mistaken the functionality you look for is the streaming mode of tarfile.open(): tar = tarfile.open(fileobj=sys.stdin, mode="r|*") Does this solve your problem? -- assignee: -> lars.gustaebel nosy: +l

[issue6254] tarfile unnecessarily requires seekable files

2009-06-11 Thread Lars Gustäbel
Lars Gustäbel added the comment: tarfile.TarFile is neither unsupported nor deprecated. It is just too low-level for everyday use. -- ___ Python tracker <http://bugs.python.org/issue6

[issue6254] tarfile unnecessarily requires seekable files

2009-06-12 Thread Lars Gustäbel
Lars Gustäbel added the comment: It is no documentation bug either: tarfile.open() is prominently featured right on the top of the first page of the tarfile module online documentation. tarfile.Tarfile() follows right after it with a short notice that tarfile.open() should better be used

[issue8633] tarfile doesn't support undecodable filename in PAX format

2010-05-16 Thread Lars Gustäbel
Changes by Lars Gustäbel : -- assignee: -> lars.gustaebel ___ Python tracker <http://bugs.python.org/issue8633> ___ ___ Python-bugs-list mailing list Unsubscri

[issue8633] tarfile doesn't support undecodable filename in PAX format

2010-05-17 Thread Lars Gustäbel
Lars Gustäbel added the comment: I added support for the hdrcharset method and a workaround for the GNU tar bug, see r81273. -- resolution: -> accepted status: open -> closed ___ Python tracker <http://bugs.python.org/

[issue8741] 2.7 regression in tarfile: IOError: link could not be created

2010-05-18 Thread Lars Gustäbel
Changes by Lars Gustäbel : -- assignee: -> lars.gustaebel ___ Python tracker <http://bugs.python.org/issue8741> ___ ___ Python-bugs-list mailing list Unsubscri

[issue8741] 2.7 regression in tarfile: IOError: link could not be created

2010-05-18 Thread Lars Gustäbel
Lars Gustäbel added the comment: @senthil: Yes, this is a platform-specific problem. The code that is failing is in fact supposed to somehow "emulate" symlink and hardlink extraction on platforms that don't support these, e.g. Windows. What tarfile is trying to do here is to e

[issue6715] xz compressor support

2010-05-25 Thread Lars Gustäbel
Changes by Lars Gustäbel : -- nosy: +lars.gustaebel ___ Python tracker <http://bugs.python.org/issue6715> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue5689] please support lzma compression as an extension and in the tarfile module

2010-05-25 Thread Lars Gustäbel
Changes by Lars Gustäbel : -- nosy: +lars.gustaebel ___ Python tracker <http://bugs.python.org/issue5689> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue8833] tarfile: broken hardlink handling and testcase.

2010-05-27 Thread Lars Gustäbel
Changes by Lars Gustäbel : -- assignee: -> lars.gustaebel nosy: +lars.gustaebel ___ Python tracker <http://bugs.python.org/issue8833> ___ ___ Python-bugs-lis

[issue8784] tarfile/Windows: Don't use mbcs as the default encoding

2010-05-30 Thread Lars Gustäbel
Lars Gustäbel added the comment: My expertise on Windows is rather limited, but as far as I understand the issue, I consider this a reasonable idea. I think it is impossible to find a perfect default encoding, and utf-8 seems to be the best bet with regard to portability. IIRC most of the

[issue8833] tarfile: broken hardlink handling and testcase.

2010-06-03 Thread Lars Gustäbel
Lars Gustäbel added the comment: Thank you very much for this valuable report. Fixed in r81663-81666. -- resolution: -> accepted status: open -> closed versions: +Python 2.6, Python 3.1, Python 3.2 ___ Python tracker <http://bugs.p

[issue8741] 2.7 regression in tarfile: IOError: link could not be created

2010-06-03 Thread Lars Gustäbel
Lars Gustäbel added the comment: I have just committed the fix. I hope that this code is now more robust. See r81667 (trunk) and r81670 (py3k). Thank you very much for your report! -- resolution: -> accepted stage: -> committed/rejected status: open -> closed versions: +P

[issue8784] tarfile/Windows: Don't use mbcs as the default encoding

2010-06-10 Thread Lars Gustäbel
Lars Gustäbel added the comment: Maybe I'm going out on a limb here, but I think we should again consider what tarfile users on Windows(!) actually use it for under which circumstances. The following list is probably not exhaustive, but IMHO covers 90%: 1. Download tar archives f

[issue8958] 2.7rc1 tarfile.py: `bltn_open(targetpath, "wb")` -> IOError: Is a directory

2010-06-10 Thread Lars Gustäbel
Changes by Lars Gustäbel : -- assignee: -> lars.gustaebel ___ Python tracker <http://bugs.python.org/issue8958> ___ ___ Python-bugs-list mailing list Unsubscri

[issue8958] 2.7rc1 tarfile.py: `bltn_open(targetpath, "wb")` -> IOError: Is a directory

2010-06-10 Thread Lars Gustäbel
Lars Gustäbel added the comment: Unfortunately I do not have access to an OS X machine. Is this problem specific to 2.7rc1 or are other versions affected as well? I thought the OS X filesystem was case sensitive ... -- nosy: +lars.gustaebel

[issue8958] 2.7rc1 tarfile.py: `bltn_open(targetpath, "wb")` -> IOError: Is a directory

2010-06-11 Thread Lars Gustäbel
Lars Gustäbel added the comment: I found the problem. As of r76780 the default for the TarFile.errorlevel argument changed from 0 (suppress errors and write them to the debug log instead) to 1 (raise exceptions for fatal extraction errors). This change was not backported to the 2.6 branch

[issue8978] "tarfile.ReadError: file could not be opened successfully" if compiled without zlib

2010-06-12 Thread Lars Gustäbel
Lars Gustäbel added the comment: If you pass an explicit mode, the error message is more or less what you want: >>> tarfile.open("uga.tgz", mode="r:gz") [...] tarfile.CompressionError: gzip module is not available The way mode="r" detects which compres

[issue8958] 2.7rc1 tarfile.py: `bltn_open(targetpath, "wb")` -> IOError: Is a directory

2010-06-14 Thread Lars Gustäbel
Lars Gustäbel added the comment: a) The point is: the operation simply wouldn't fail on a case-sensitive filesystem. There is no platform-specific or otherwise special code in TarFile.makefile(). It simply tries to extract the file and the filesystem layer says no, because it believes

[issue9065] tarfile: default root:root ownership is incorrect.

2010-06-24 Thread Lars Gustäbel
Changes by Lars Gustäbel : -- assignee: -> lars.gustaebel nosy: +lars.gustaebel ___ Python tracker <http://bugs.python.org/issue9065> ___ ___ Python-bugs-lis

[issue9071] TarFile doesn't support member files with a leading "./"

2010-06-25 Thread Lars Gustäbel
Lars Gustäbel added the comment: This is a duplicate of issue6054 which has been fixed in Python 2.7 (r74571). (Hi, Gustavo!) -- assignee: -> lars.gustaebel nosy: +lars.gustaebel resolution: -> duplicate status: open -> closed ___ Pytho

[issue27590] tarfile module next() method hides exceptions

2016-07-24 Thread Lars Gustäbel
Lars Gustäbel added the comment: The question is what you're trying to accomplish. If you just want to prevent tarfile from stopping at the first invalid header in order to extract everything following it, you may use the ignore_zeros=True keyword arg

[issue27590] tarfile module next() method hides exceptions

2016-07-27 Thread Lars Gustäbel
Lars Gustäbel added the comment: After all these years, it is not that easy to say why the decision to swallow this exception was made. One part surely was a lack of experience with the tar format itself and all of its implementations. The other part I guess was that it was supposed to avoid

[issue9369] const char* for PyObject_CallMethod and PyObject_CallFunction

2013-02-15 Thread Lars Buitinck
Lars Buitinck added the comment: I'm sorry, I really don't understand this refcounts.dat file and I'm not going to hack it further. Does the patch as it currently stands solve the issue with CallMethod and CallFunction, or not? (It has the chan

[issue13477] tarfile module should have a command line

2013-03-20 Thread Lars Gustäbel
Lars Gustäbel added the comment: I'd like to re-emphasize that it is best to keep the whole thing as simple and straight-forward as possible. Offer some basic operations and that's it. Although I am pretty accustomed to the original tar command line, I think we should copy zipfile&#

[issue23081] Document PySequence_List(o) as equivalent to list(o)

2014-12-18 Thread Lars Buitinck
New submission from Lars Buitinck: PySequence_List has accepted iterables since changeset 6c82277e77f3 of May 1, 2001 ("NEEDS DOC CHANGES" :), but its documentation still only speaks of sequences. I suggest that it is changed to promise to handle arbitrary iterables,

[issue23193] Please support "numeric_owner" in tarfile

2015-01-13 Thread Lars Gustäbel
Lars Gustäbel added the comment: I would argue that a serious alternative to this patch is to simply override the TarFile.chown() method in a subclass. However, I'm not sure if this expects too much of the user. -- ___ Python tracker

[issue24259] tar.extractall() does not recognize unexpected EOF

2015-05-28 Thread Lars Gustäbel
Lars Gustäbel added the comment: I have written a test for the issue, so that we have a basis for discussion. There are four different scenarios where an unexpected eof can occur: inside a metadata block, directly after a metadata block, inside a data segment or directly after a data segment

[issue24259] tar.extractall() does not recognize unexpected EOF

2015-05-28 Thread Lars Gustäbel
Lars Gustäbel added the comment: @Martin: Yes, that's right, but only for cases where the TarFile.fileobj attribute is an actual file object. But, most of the time it is something special, e.g. GzipFile or sys.stdin, which makes random seeking either impossible or perform very badly.

[issue24259] tar.extractall() does not recognize unexpected EOF

2015-05-29 Thread Lars Gustäbel
Changes by Lars Gustäbel : Added file: http://bugs.python.org/file39544/issue24259-2.x.diff ___ Python tracker <http://bugs.python.org/issue24259> ___ ___ Python-bug

[issue24259] tar.extractall() does not recognize unexpected EOF

2015-05-29 Thread Lars Gustäbel
Lars Gustäbel added the comment: @Thomas: I think your proposal adds a little too much complexity. Also, ExFileObject is not used during iteration, and we would like to detect broken archives without unpacking all the data segments first. I have written patches for Python 2 and 3

[issue24259] tar.extractall() does not recognize unexpected EOF

2015-05-31 Thread Lars Gustäbel
Lars Gustäbel added the comment: @Martin: This is actually a nice idea that I hadn't thought of. I updated the Python 3 patch to use a seek() that moves to one byte before the next header block, reads the remaining byte and raises an error if it hits eof. The code looks rather clean com

[issue24259] tar.extractall() does not recognize unexpected EOF

2015-05-31 Thread Lars Gustäbel
Changes by Lars Gustäbel : Added file: http://bugs.python.org/file39580/issue24259-2.x-2.diff ___ Python tracker <http://bugs.python.org/issue24259> ___ ___ Python-bug

[issue24465] Make tarfile have deterministic sorting

2015-06-18 Thread Lars Gustäbel
Lars Gustäbel added the comment: You don't need to patch the tarfile module. You could use os.walk() in shutil._make_tarball() and add each file with TarFile.add(recursive=False). -- nosy: +lars.gustaebel ___ Python tracker <http://bugs.py

[issue24465] Make tarfile have deterministic sorting

2015-06-19 Thread Lars Gustäbel
Lars Gustäbel added the comment: The patch would change behaviour for all tarfile users by the back door, that's why I am a little reluctant. And if the same can be achieved by a reasonably simple change to shutil I think it's ju

[issue24514] tarfile fails to extract archive (handled fine by gnu tar and bsdtar)

2015-06-26 Thread Lars Gustäbel
Lars Gustäbel added the comment: The problem is that the tar archive has empty uid and gid fields, i.e. 7 spaces terminated with a null-byte. I attached a patch that solves the problem. -- keywords: +patch Added file: http://bugs.python.org/file39815/issue24514.diff

[issue24514] tarfile fails to extract archive (handled fine by gnu tar and bsdtar)

2015-06-26 Thread Lars Gustäbel
Lars Gustäbel added the comment: You're welcome :-D -- assignee: -> lars.gustaebel priority: normal -> low stage: -> patch review type: -> behavior versions: +Python 3.5, Python 3.6 ___ Python tracker <http://bugs.p

[issue24514] tarfile fails to extract archive (handled fine by gnu tar and bsdtar)

2015-06-26 Thread Lars Gustäbel
Lars Gustäbel added the comment: Yes, Python 2.7 still gets bugfixes. However, there's still some work to do on the patch (maybe clean the code, write a test, add a NEWS entry). -- ___ Python tracker <http://bugs.python.org/is

[issue24514] tarfile fails to extract archive (handled fine by gnu tar and bsdtar)

2015-06-29 Thread Lars Gustäbel
Lars Gustäbel added the comment: I think a simple addition to the existing unittest for nti() will be enough. itn() seems well-tested, and nts() and stn() are not affected, because they don't operate on numbers. -- Added file: http://bugs.python.org/file39832/issue24514

[issue24259] tar.extractall() does not recognize unexpected EOF

2015-06-29 Thread Lars Gustäbel
Lars Gustäbel added the comment: Martin, I followed your suggestion to raise ReadError. This needed an additional change in copyfileobj() because it is used both for adding file data to an archive and extracting file data from an archive. But I think the patch is in good shape now

[issue24514] tarfile fails to extract archive (handled fine by gnu tar and bsdtar)

2015-07-02 Thread Lars Gustäbel
Changes by Lars Gustäbel : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <http://bugs.python.or

[issue24259] tar.extractall() does not recognize unexpected EOF

2015-07-06 Thread Lars Gustäbel
Changes by Lars Gustäbel : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <http://bugs.python.or

[issue24838] tarfile.py: fix GNU and USTAR formats to properly handle paths with special characters that are encoded with more than one byte each

2015-08-14 Thread Lars Gustäbel
Lars Gustäbel added the comment: Thanks for the detailed report and the patch. I haven't checked yet, but I suppose that the entire 3.x branch is affected. The first thing I have to do now is to come up with a comprehensive testcase. -- assignee: -> lars.gustaebel co

[issue24838] tarfile.py: fix GNU and USTAR formats to properly handle paths with special characters that are encoded with more than one byte each

2016-04-18 Thread Lars Gustäbel
Changes by Lars Gustäbel : -- resolution: -> fixed stage: test needed -> resolved status: open -> closed versions: -Python 3.2, Python 3.3, Python 3.4 ___ Python tracker <http://bugs.python.or

[issue10261] tarfile iterator without members caching

2016-04-19 Thread Lars Gustäbel
Lars Gustäbel added the comment: Closing after six years of inactivity. -- resolution: -> wont fix stage: -> resolved status: open -> closed ___ Python tracker <http://bugs.python.or

[issue24838] tarfile.py: fix GNU and USTAR formats to properly handle paths with special characters that are encoded with more than one byte each

2016-04-19 Thread Lars Gustäbel
Lars Gustäbel added the comment: Sorry for the glitch, I suppose everything works fine now. -- status: open -> closed ___ Python tracker <http://bugs.python.org/issu

[issue8978] "tarfile.ReadError: file could not be opened successfully" if compiled without zlib

2016-04-20 Thread Lars Gustäbel
Lars Gustäbel added the comment: Closed after years of inactivity. -- resolution: -> works for me stage: -> resolved status: open -> closed ___ Python tracker <http://bugs.python.o

[issue26877] tarfile use wrong code when read from fileobj

2016-04-30 Thread Lars Gustäbel
Lars Gustäbel added the comment: Please give us some example test code that shows us what goes wrong exactly. -- ___ Python tracker <http://bugs.python.org/issue26

[issue23228] The tarfile module crashes when tarfile contains a symlink and unpack directory contain it too

2016-05-08 Thread Lars Gustäbel
Lars Gustäbel added the comment: TarFile.makelink() has a fallback mode in case the platform does not support links. Instead of a symlink or a hardlink it extracts the file it points to as long as it exists in the current archive. More precisely, makelink() calls os.symlink() and if one of

[issue23228] The tarfile module crashes when tarfile contains a symlink and unpack directory contain it too

2016-05-08 Thread Lars Gustäbel
Lars Gustäbel added the comment: I suck :-) It is hg revision bb94f6222fef. -- ___ Python tracker <http://bugs.python.org/issue23228> ___ ___ Python-bugs-list m

[issue23649] tarfile not re-entrant for multi-threading

2015-03-16 Thread Lars Gustäbel
Lars Gustäbel added the comment: I agree with David that there is no need for tarfile to be thread-safe. There is nothing to be gained from distributing one TarFile object among multiple threads because it operates on a single resource which has to be accessed sequentially anyway. So, it

[issue44524] __name__ attribute in typing module

2021-06-29 Thread Lars van Gemerden
Lars van Gemerden added the comment: I was not aware the __name__ attribute is an implementation detail. It is described in the docs: https://docs.python.org/3/reference/datamodel.html. I have been using it since python 2.7, for example for logging. The function “split_module_names” is just

<    1   2   3