Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Comparing runtime type  RSS feed

 
Pho Tek
Ranch Hand
Posts: 782
Chrome Python Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Let's suppose I have a method called checkType with the
signature as follows:

Within the checkType method, I want to be able to work
on only one specific types of Class. So I do this:

However I've also seen two other variations of this namely:

    [list]
    [/list][list]
    [/list]
    Which one do you use most often and why ?
    Pho
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!