On Oct 19, 10:32 am, [EMAIL PROTECTED] wrote:
> In python, how do I know what exceptions a method could raise?  Do I
> need to look at the source?  I don't see this info in the API docs for
> any of the APIs I'm using.
>
> Thanks in advance for your help.

Read the source, run unit tests, etc. If you write your own methods,
you might consider writing tests beforehand: 
http://en.wikipedia.org/wiki/Test-driven_development

Sometimes the module's docs will tell you the likely return values,
which can help you know what exceptions to look out for.

Mike

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to