[issue10369] tarfile requires an actual file on disc; a file-like object is insufficient

2012-03-06 Thread Lars Gustäbel
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 ___

[issue10369] tarfile requires an actual file on disc; a file-like object is insufficient

2010-11-20 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10369 ___ ___ Python-bugs-list

[issue10369] tarfile requires an actual file on disc; a file-like object is insufficient

2010-11-09 Thread Lars Gustäbel
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))

[issue10369] tarfile requires an actual file on disc; a file-like object is insufficient

2010-11-08 Thread Dan Stromberg
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

[issue10369] tarfile requires an actual file on disc; a file-like object is insufficient

2010-11-08 Thread R. David Murray
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 ___