On Sun, Nov 22, 2009 at 9:08 PM, Chris McDonough <chr...@plope.com> wrote:

> Iain Duncan wrote:
> > Am I missing something terribly obvious, or is that not just a regular
> > instance method in the example? Or am I misunderstanding the point?
> > Perhaps this part could be clearer, it's confused me at any rate.
> I'm not really clear how to make changes to make it clearer.  What are your
> expectations?
> This seems to be a simple confusion over terminology.  According Python's
own terminology, the following class has a class method, a static method,
and an instance method:

class C(Object):
    def factory(cls, *args, **kw):
        """My first argument is the class."""

    def something_else(*args, **kw):
        """I get no special args."""

    def an_instance_method(self, *args, **kw):
        """I take an instance as my first arg."""

So, technically, where the documentation refers to a class method, you
really mean an instance method.

Repoze-dev mailing list

Reply via email to