Expression problem.

2010-10-06 Thread Nethirlon .
Hi, I am having trouble with an expression. I have the following line of code: self.failUnless(c.as == 65215) What happens when you compile this is that you get a syntax error. This is because as has been made a keyword. failUnless is from the module unittest. Now my problem is this. the ".as"

Re: Expression problem.

2010-10-06 Thread Nethirlon .
On 6 okt, 11:53, Peter Otten <__pete...@web.de> wrote: > Sebastiaan de Haan wrote: > > Thank you Chris, > > > I'll try and find the attribute in the code. That was my conclusion > > aswell... The original author must have defined it somewhere... > > Don't forget to check whether the object's class

Re: Expression problem.

2010-10-06 Thread Nethirlon .
On 6 okt, 15:25, Peter Otten <__pete...@web.de> wrote: > Nethirlon . wrote: > > On 6 okt, 11:53, Peter Otten <__pete...@web.de> wrote: > >> Sebastiaan de Haan wrote: > >> > Thank you Chris, > > >> > I'll try and find the attribute in