Re: [Repoze-dev] doc question
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): @classmethod def factory(cls, *args, **kw): My first argument is the class. @staticmethod 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. Chris ___ Repoze-dev mailing list Repoze-dev@lists.repoze.org http://lists.repoze.org/listinfo/repoze-dev
Re: [Repoze-dev] doc question
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 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): @classmethod def factory(cls, *args, **kw): My first argument is the class. @staticmethod 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. Iain ___ Repoze-dev mailing list Repoze-dev@lists.repoze.org http://lists.repoze.org/listinfo/repoze-dev
Re: [Repoze-dev] doc question
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? - C ___ Repoze-dev mailing list Repoze-dev@lists.repoze.org http://lists.repoze.org/listinfo/repoze-dev