TypeError

Trent Mick trentm at ActiveState.com
Thu Oct 26 13:11:58 EDT 2000


On Thu, Oct 26, 2000 at 07:47:34PM +0300, joonas wrote:
> I used the "print type(first)" method and it printed 
> 
> "<type 'Button'>"
> 
> but when i wrote used "print first" it gave me 
> 
> "100"
> 

"100" is the result of running your BUtton's __str__() method.


> So. How can i make first substractable.

Well, are you sure you want to subtract Buttons? I don't know what it means
to do that.

Trent


-- 
Trent Mick
TrentM at ActiveState.com




More information about the Python-list mailing list