On Mon, 2009-11-23 at 09:37 -0500, Chris Rossi wrote:
> On Sun, Nov 22, 2009 at 9:08 PM, Chris McDonough <chr...@plope.com>
> 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
> > Perhaps this part could be clearer, it's confused me at any
> I'm not really clear how to make changes to make it clearer.
> What are your
> 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.
That was indeed what I meant. I was looking for the *class method* and
wondering if there was a typo or something.
Repoze-dev mailing list