Object type check

Eduardo "EdCrypt" O. Padoan eopadoan at altavix.com
Wed Feb 7 12:09:24 EST 2007


> Of cource i restrict them to particular types! In C# you cannot pass
> something bad
> this way because the compiler will just catch it!

And you cant pass something 'good' that immitates another object
interface (a file-like object for example)

> I see what you mean by "duck typing". So you suggest the "do nothing
> at all" direction,
> better document my code so other can see what is expected, right ?

I would add UnitTests to it.
-- 
EduardoOPadoan (eopadoan->altavix::com)



More information about the Python-list mailing list