[BangPypers] Extracting zipfile
jeffjosejeff at gmail.com
Mon May 31 05:02:01 CEST 2010
If you're starting out Python, I highly recommend IPython (
http://ipython.scipy.org/moin/ ). With its excellent tab completion, you
would never run into an "AttributeError"
On Mon, May 31, 2010 at 7:30 AM, Roshan Mathews <rmathews at gmail.com> wrote:
> On Mon, May 31, 2010 at 05:56, murugadoss <murugadoss2884 at gmail.com>
> >>>> zipfile.extractall("home/murugadoss/testfile.zip")
> > Traceback (most recent call last):
> > File "<stdin>", line 1, in <module>
> > AttributeError: 'module' object has no attribute 'extractall'
> `extractall' is a method on ZipFile objects.
> You might need to do something like:
> z = zipfile.ZipFile(path_to_file)
> BangPypers mailing list
> BangPypers at python.org
More information about the BangPypers