[Tutor] new to python error handling question

Erick drachkk at yahoo.com
Mon Apr 12 16:45:03 EDT 2004

Hi i started playing with python 2-3 days. i'm developping an FTP software.
i use some error handling 
here's how it goes:
  def do_list(*??*):
        except (AttributeError):
            print "AttributeError"
        return ()
Why does it for sure detect AttributError when if i take the Try,Except off, it does'nt.
Also i'm not totally sur how to decide what goes in (*??*)
For this one i putted (ftp, retrlines). It does'nt cause any problem put i dont think its right because i could put anything and it would do fine.....What is the difference?????

Do you Yahoo!?
Yahoo! Tax Center - File online by April 15th
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/tutor/attachments/20040412/22ce8878/attachment.html

More information about the Tutor mailing list