Re: Python Code Auditing Tool

2005-02-02 Thread Skip Montanaro
>> 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

Re: Python Code Auditing Tool

2005-02-02 Thread Peter Hansen
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

Re: Python Code Auditing Tool

2005-02-02 Thread Roy Smith
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

Re: Python Code Auditing Tool

2005-02-02 Thread System Administrator
>> 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

Re: Python Code Auditing Tool

2005-02-02 Thread Diez B. Roggisch
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. >

Re: Python Code Auditing Tool

2005-02-02 Thread Neil Benn
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

Re: Python Code Auditing Tool

2005-02-02 Thread Diez B. Roggisch
> 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.

Re: Python Code Auditing Tool

2005-02-01 Thread Robey Holderith
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

Re: Python Code Auditing Tool

2005-02-01 Thread Paul Rubin
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

Python Code Auditing Tool

2005-02-01 Thread Robey Holderith
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