[BangPypers] Extracting zipfile
Jeffrey Jose
jeffjosejeff at gmail.com
Mon May 31 05:02:01 CEST 2010
Dear Murugadoss,
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"
/jeff
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>
> wrote:
> >>>> zipfile.extractall("home/murugadoss/testfile.zip")
> > Traceback (most recent call last):
> > File "<stdin>", line 1, in <module>
> > AttributeError: 'module' object has no attribute 'extractall'
>
> http://docs.python.org/library/zipfile.html#zipfile.ZipFile.extractall
>
> `extractall' is a method on ZipFile objects.
>
> You might need to do something like:
> z = zipfile.ZipFile(path_to_file)
> z.extractall(...)
> _______________________________________________
> BangPypers mailing list
> BangPypers at python.org
> http://mail.python.org/mailman/listinfo/bangpypers
>
More information about the BangPypers
mailing list