Re: Adjusting the names of custom exceptions (since raising strings is deprecated)

2007-08-21 Thread Silfheed
On Aug 21, 1:53 pm, Peter Otten <[EMAIL PROTECTED]> wrote: > Silfheed wrote: > > On Aug 21, 1:32 am, James Stroud <[EMAIL PROTECTED]> wrote: > >> Silfheed wrote: > >> > Heyas > > >> > So this probably highlights my lack of understanding of how naming > >> > works in python, but I'm currently using

Re: Adjusting the names of custom exceptions (since raising strings is deprecated)

2007-08-21 Thread Peter Otten
Silfheed wrote: > On Aug 21, 1:32 am, James Stroud <[EMAIL PROTECTED]> wrote: >> Silfheed wrote: >> > Heyas >> >> > So this probably highlights my lack of understanding of how naming >> > works in python, but I'm currently using FailUnlessRaises in a unit >> > test and raising exceptions with a st

Re: Adjusting the names of custom exceptions (since raising strings is deprecated)

2007-08-21 Thread Silfheed
On Aug 21, 1:32 am, James Stroud <[EMAIL PROTECTED]> wrote: > Silfheed wrote: > > Heyas > > > So this probably highlights my lack of understanding of how naming > > works in python, but I'm currently using FailUnlessRaises in a unit > > test and raising exceptions with a string exception. It's wor

Re: Adjusting the names of custom exceptions (since raising strings is deprecated)

2007-08-21 Thread James Stroud
Silfheed wrote: > Heyas > > So this probably highlights my lack of understanding of how naming > works in python, but I'm currently using FailUnlessRaises in a unit > test and raising exceptions with a string exception. It's working > pretty well, except that I get the deprecation warning that ra

Adjusting the names of custom exceptions (since raising strings is deprecated)

2007-08-20 Thread Silfheed
Heyas So this probably highlights my lack of understanding of how naming works in python, but I'm currently using FailUnlessRaises in a unit test and raising exceptions with a string exception. It's working pretty well, except that I get the deprecation warning that raising a string exception is