[issue34662] tarfile.TarFile may write corrupt files if not closed

2018-09-13 Thread Ned Deily
Change by Ned Deily : -- nosy: +lars.gustaebel ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue34662] tarfile.TarFile may write corrupt files if not closed

2018-09-13 Thread Daniel Pope
Daniel Pope added the comment: I have several suggestions for steps to address this: 1. Don't create reference cycles. TarInfo.tarfile does not appear to be a documented attribute (https://docs.python.org/3/library/tarfile.html#tarinfo-objects) and could perhaps be deleted. 2. Issue a Resou

[issue34662] tarfile.TarFile may write corrupt files if not closed

2018-09-13 Thread Daniel Pope
New submission from Daniel Pope : A tarfile.TarFile object open for writing may silently write corrupt tar files if it is destroyed before being closed. While explicitly calling close() or using the object as a context manager is recommended, I would not expect this in basic usage. There are