John Machin wrote:
>> import re
>> template = '^My name is alex'
>
> The ^ is redundant.
Didn't the OP want to match only at the beginning of the string?
m.
--
http://mail.python.org/mailman/listinfo/python-list
Bruno Desthuilliers @ Thursday 21 August 2008 17:31:
>>> If you mean "the exceptions *explicitely raised* by your code", then
>>> I agree. But with any generic enough code, documenting any possible
>>> exception that could be raised by lower layers, objects passed in as
>>> arguments etc is just p
Bruno Desthuilliers @ Thursday 21 August 2008 22:54:
> magloca a écrit :
>> Bruno Desthuilliers @ Thursday 21 August 2008 17:31:
>>
>>>>> If you mean "the exceptions *explicitely raised* by your code",
>>>>> then I agree. But with any generi