Thoughts on using isinstance

Bruno Desthuilliers bdesth.quelquechose at free.quelquepart.fr
Wed Jan 24 21:15:52 CET 2007


abcd a écrit :
> Well my example function was simply taking a string and printing, but
> most of my cases would be expecting a list, dictionary or some other
> custom object.  Still propose not to validate the type of data being
> passed in?

Yes - unless you have a *very* compelling reason to do otherwise.



More information about the Python-list mailing list