Re: An object is and isn't an instance of a class at the same time

2012-12-09 Thread Dave Angel
On 12/09/2012 07:31 PM, Chris Angelico wrote: > On Mon, Dec 10, 2012 at 10:34 AM, danielk wrote: >> D:\home\python>python jtest.py >> >> Traceback (most recent call last): >> File "jtest.py", line 4, in >> executeResults = jc.execute(cmnd) >> File "D:\home\python\jukebox\jconnection.py",

Re: An object is and isn't an instance of a class at the same time

2012-12-09 Thread Chris Angelico
On Mon, Dec 10, 2012 at 10:34 AM, danielk wrote: > D:\home\python>python jtest.py > > Traceback (most recent call last): > File "jtest.py", line 4, in > executeResults = jc.execute(cmnd) > File "D:\home\python\jukebox\jconnection.py", line 225, in execute > raise TypeError("Command m

An object is and isn't an instance of a class at the same time

2012-12-09 Thread danielk
I was debugging some code using isinstance() to make sure the correct object was been passed to the method and came across something that is really ticking me off. I have a class called 'Jitem' in its own file called 'jitem.py'. It's part of a package called 'jukebox'. I also have '__all__' th