Re: documenting excepetions in Python

2007-10-19 Thread Bruno Desthuilliers
[EMAIL PROTECTED] a écrit : > In python, how do I know what exceptions a method s/method/callable/ A method is only a thin wrapper around a function, and functions are just one kind of callable object (classes are another, and you can define your own...) > could raise? Practically speaking, y

Re: documenting excepetions in Python

2007-10-19 Thread Nikita the Spider
In article <[EMAIL PROTECTED]>, [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. Hi Dale, Usually the docs for a method will list the likely except

Re: documenting excepetions in Python

2007-10-19 Thread kyosohma
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 y