asab has asked for the wisdom of the Perl Monks concerning the following question:
Hi Monks, Can you guys enlighten me with your knowledge!!! I am in search of regular expressions which extracts out all the possible Errors/exception in python code base
Here is what I came up with
grep -RnH "raise .*Error" *.py grep -RnH "except .*:" *.py
I need to add a preamble to the error messages/warnings/exception in python code. To start with I used above pattern to get the required list of error messages! Any help in making it more complete would be of great help
Thanks
Asab
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: regular expression to extract exception/errors in python code base
by james2vegas (Chaplain) on Sep 09, 2012 at 06:09 UTC | |
|
Re: regular expression to extract exception/errors in python code base
by CountZero (Bishop) on Sep 09, 2012 at 07:31 UTC | |
by Anonymous Monk on Sep 09, 2012 at 12:51 UTC | |
|
Re: regular expression to extract exception/errors in python code base
by Anonymous Monk on Sep 09, 2012 at 16:40 UTC | |
by Anonymous Monk on Sep 09, 2012 at 16:47 UTC | |
by asab (Sexton) on Sep 10, 2012 at 06:56 UTC | |
by MonkOfAnotherSect (Sexton) on Sep 13, 2012 at 02:03 UTC |