Object type check
king kikapu
aboudouvas at panafonet.gr
Wed Feb 7 11:59:12 EST 2007
> Dont restrict them to particular types. You would
> not restrict them to a particular class in C#. Instead, you define the
> interfaces simply by how you use the objects.
Of cource i restrict them to particular types! In C# you cannot pass
something bad
this way because the compiler will just catch it!
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 ?
More information about the Python-list
mailing list