Title: RE: Metaclasses

Shalabh

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.

Regards
Bob

-----Original Message-----
From: Shalabh Chaturvedi [mailto:[EMAIL PROTECTED]]
Sent: 22 December 2004 23:44
To: python-list@python.org
Subject: Re: Metaclasses


[EMAIL PROTECTED] wrote:

> I am trying to build a capability based API. That is, an instance of
> the api will reflect the capabilities of some underlying services.

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

--
Shalabh

--
http://mail.python.org/mailman/listinfo/python-list

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

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to