Changes by Lars Gustäbel l...@gustaebel.de:
--
resolution: - invalid
stage: - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10369
___
Changes by Éric Araujo mer...@netwok.org:
--
nosy: +eric.araujo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10369
___
___
Python-bugs-list
Lars Gustäbel l...@gustaebel.de added the comment:
Hm, why don't you just do this:
with stat_tarfile.open(fileobj = sys.stdout, mode = w|) as tar:
for number in xrange(100):
fileobj = generate_file_content(number)
tarinfo = tar.gettarinfo(fileobj=open(/etc/passwd))
New submission from Dan Stromberg strom...@gmail.com:
The tarfile module's gettarinfo callable insists on stat'ing the file in
question, preventing one from dynamically generating file content by passing a
file-like object for addfile's fileobj argument.
I believe the attached patch fixes
Changes by R. David Murray rdmur...@bitdance.com:
--
type: - feature request
versions: +Python 3.2 -Python 2.7, Python 3.1
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10369
___