<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2653.12">
<TITLE>RE: Metaclasses</TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=2>Shalabh</FONT>
</P>

<P><FONT SIZE=2>Yes I am realising there are variaous ways to achieve the same end. I guess I am in research mode at the moment and understanding what metaclasses can do is important even if I end up not using them. There is another thread on this question where I am trying to fill in the gaps in my understanding.</FONT></P>

<P><FONT SIZE=2>Regards</FONT>
<BR><FONT SIZE=2>Bob</FONT>
</P>

<P><FONT SIZE=2>-----Original Message-----</FONT>
<BR><FONT SIZE=2>From: Shalabh Chaturvedi [<A HREF="mailto:shalabh@cafepy.com">mailto:shalabh@cafepy.com</A>] </FONT>
<BR><FONT SIZE=2>Sent: 22 December 2004 23:44</FONT>
<BR><FONT SIZE=2>To: python-list@python.org</FONT>
<BR><FONT SIZE=2>Subject: Re: Metaclasses</FONT>
</P>
<BR>

<P><FONT SIZE=2>Bob.Cowdery@CGI-Europe.com wrote:</FONT>
</P>

<P><FONT SIZE=2>> I am trying to build a capability based API. That is, an instance of </FONT>
<BR><FONT SIZE=2>> the api will reflect the capabilities of some underlying services.</FONT>
</P>

<P><FONT SIZE=2>The question I'd ask at this point is - does the term 'instance of the </FONT>
<BR><FONT SIZE=2>API' correspond to a Python class, or an instance of the class that you </FONT>
<BR><FONT SIZE=2>define? In case you want to have one class per API, you'd have multiple </FONT>
<BR><FONT SIZE=2>classes in which case metaclasses *may* be useful (but still not </FONT>
<BR><FONT SIZE=2>required). In case you want to have one instance per API such that each </FONT>
<BR><FONT SIZE=2>instance has a different set of methods,  you don't need metaclasses at all.</FONT>
</P>

<P><FONT SIZE=2>--</FONT>
<BR><FONT SIZE=2>Shalabh</FONT>
</P>

<P><FONT SIZE=2>-- </FONT>
<BR><FONT SIZE=2><A HREF="http://mail.python.org/mailman/listinfo/python-list" TARGET="_blank">http://mail.python.org/mailman/listinfo/python-list</A></FONT>
</P>


<P><STRONG>*** Confidentiality Notice ***</STRONG> 
Proprietary/Confidential<BR>Information belonging to CGI Group Inc. and its 
affiliates<BR>may be contained in this message. If you are not a 
recipient<BR>indicated or intended in this message (or responsible 
for<BR>delivery of this message to such person), or you think for<BR>any reason 
that this message may have been addressed to you<BR>in error, you may not use or 
copy or deliver this message<BR>to anyone else.  In such case, you should 
destroy this<BR>message and are asked to notify the sender by reply 
email.</P>
</BODY>
</HTML>