>> 246 ValueError
>> 227 aetools.Error
>> 216 Error
>> 124 TypeError
>> 101 error
>> 75 RuntimeError
>> 53 IOError
>> 36 NotImplementedError
>> 36 ImportError
>> 36 EOFError
>> 31 SyntaxError
>> 23 KeyError
>> 23 AttributeError
>> 22 Distutil
Roy Smith wrote:
Skip Montanaro wrote:
246 ValueError
227 aetools.Error
216 Error
124 TypeError
101 error
75 RuntimeError
53 IOError
36 NotImplementedError
36 ImportError
36 EOFError
31 SyntaxError
23 KeyError
23 AttributeError
22 DistutilsPlatform
In article <[EMAIL PROTECTED]>,
System Administrator <[EMAIL PROTECTED]> wrote:
>
>>> Does anybody know of a tool that can tell me all possible exceptions
>>> that might occur in each line of code? What I'm hoping to find is
>>> something like the following:
>
>Paul> That is impos
>> Does anybody know of a tool that can tell me all possible exceptions
>> that might occur in each line of code? What I'm hoping to find is
>> something like the following:
Paul> That is impossible. The parameter to the raise statement is a
Paul> class object, which can be
Hi,
>I'm afraid that the only reliable way to gather what exceptions are
> raised is to read docs and/or come up with test cases. This has been a
> bugbear of mine in Python as it's not common to find a nice :Exceptions:
> IOError , IllegalArgumentError type of description in the
> docs.
>
Diez B. Roggisch wrote:
I suppose that I am willing to lessen my expectations from _all_ to most.
;-) Regarding your example I could also do:
<
There is AFAIK only one language that this can de accomplished - java, and
that's because of these checked exceptions of theirs. But checked
exceptio
> I suppose that I am willing to lessen my expectations from _all_ to most.
> ;-) Regarding your example I could also do:
>
> if something():
> def nothing(): return 0
> else:
> def nothing(): return 1
>
> But this doesn't stop IDEs from attempting to do auto-completion.
On Tue, 01 Feb 2005 21:52:28 -0800, Paul Rubin wrote:
> Robey Holderith <[EMAIL PROTECTED]> writes:
>> Does anybody know of a tool that can tell me all possible exceptions that
>> might occur in each line of code? What I'm hoping to find is something
>> like the following:
>
> That is impossible
Robey Holderith <[EMAIL PROTECTED]> writes:
> Does anybody know of a tool that can tell me all possible exceptions that
> might occur in each line of code? What I'm hoping to find is something
> like the following:
That is impossible. The parameter to the raise statement is a class
object, which
Does anybody know of a tool that can tell me all possible exceptions that
might occur in each line of code? What I'm hoping to find is something
like the following:
given all necessary python source and a given line ( my.py:40 ) it would
generate a list of possible exception classes sorted by fun
10 matches
Mail list logo