Pre defined system function for reflection : isinstance « Development « Python






Pre defined system function for reflection

import types

isinstance([1],list)

type([1])==list

type([1])==type([])

type([1])==types.ListType


           
       








Related examples in the same category