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 <[email protected]> wrote:

> On Mon, May 31, 2010 at 05:56, murugadoss <[email protected]>
> 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
> [email protected]
> http://mail.python.org/mailman/listinfo/bangpypers
>
_______________________________________________
BangPypers mailing list
[email protected]
http://mail.python.org/mailman/listinfo/bangpypers

Reply via email to