[Tutor] digging more into metaclasses

Kent Johnson kent37 at tds.net
Fri Jul 14 12:44:42 CEST 2006


anil maran wrote:
> hi guys
>
> are metaclasses like templates in C++

No. Templates are a way to make generic functions that will work with a 
variety of types of data. Because Python is dynamically typed, all 
functions are generic in this sense and templates are not needed.

See http://en.wikipedia.org/wiki/Duck_typing

Kent



More information about the Tutor mailing list