Re: [Tutor] using tarfile on strings or filelike objects

2007-03-05 Thread Barton David
l in response to a tutor's direct reply) it doesn't seem to add my message to the bottom of the existing thread. If somebody can tell me what I'm doing wrong, I'd appreciate it. -Original Message- From: Kent Johnson [mailto:[EMAIL PROTECTED] Sent: 05 March 2007 12:44

Re: [Tutor] using tarfile on strings or filelike objects

2007-03-05 Thread Kent Johnson
Barton David wrote: > Thanks Kent, > > But.. I've actually found that that doesn't work (raises a ReadError), > and neither does.. tf=tarfile.open(mode="r|*",fileobj=filelike) > ..which raises "AttributeError: _Stream instance has no attribute > 'dbuf'" > > However if I explicitly state the

Re: [Tutor] using tarfile on strings or filelike objects

2007-03-05 Thread Barton David
s. I just don't get it. Regards, Dave -Original Message- From: Kent Johnson [mailto:[EMAIL PROTECTED] Sent: 03 March 2007 22:26 To: Barton David Cc: tutor@python.org Subject: Re: [Tutor] using tarfile on strings or filelike objects Barton David wrote: > I like that I can access th

Re: [Tutor] using tarfile on strings or filelike objects

2007-03-03 Thread Kent Johnson
Barton David wrote: > I like that I can access the contents of a zip archive that's stored in > memory (rather than on disk) by packing the archive contents into a > StringIO or cStringIO object and feeding that to ZipFile... > > i.e. > > filelike=cStringIO.StringIO(archive_as_string) > zf=zi

Re: [Tutor] using tarfile on strings or filelike objects

2007-03-02 Thread Luke Paireepinart
Barton David wrote: > I like that I can access the contents of a zip archive that's stored > in memory (rather than on disk) by packing the archive contents into a > StringIO or cStringIO object and feeding that to ZipFile... > > i.e. > > filelike=cStringIO.StringIO(archive_as_string) > zf=zi