In article
<[EMAIL PROTECTED]>,
Kurda Yon <[EMAIL PROTECTED]> wrote:
> On Jul 1, 5:01 pm, "[EMAIL PROTECTED]"
> <[EMAIL PROTECTED]> wrote:
> > On 1 juil, 22:43, Kurda Yon <[EMAIL PROTECTED]> wrote:
> >
> >
> >
> > > Hi,
> >
> > > I have a class called "vector". And I would like to define a funct
Kurda Yon a écrit :
On Jul 1, 5:01 pm, "[EMAIL PROTECTED]"
<[EMAIL PROTECTED]> wrote:
On 1 juil, 22:43, Kurda Yon <[EMAIL PROTECTED]> wrote:
Hi,
I have a class called "vector". And I would like to define a function
"dot" which would return a dot product of any two "vectors". I want
to call
On Jul 1, 2:43 pm, Kurda Yon <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I have a class called "vector". And I would like to define a function
> "dot" which would return a dot product of any two "vectors". I want
> to call this function as follow: dot(x,y).
>
> Well, I can define a functions "dot" outsid
On Jul 1, 2:24 pm, Kurda Yon <[EMAIL PROTECTED]> wrote:
>
> By the way, "type(self)" returns the name of the class to which the
> "self" belongs?
> Does "instance" return "true" if the first argument belongs to the
> class whose name is given in the second argument?
$ python
Python 2.5.1 (r251:548
On Jul 1, 1:43 pm, Kurda Yon <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I have a class called "vector". And I would like to define a function
> "dot" which would return a dot product of any two "vectors". I want
> to call this function as follow: dot(x,y).
>
> Well, I can define a functions "dot" outsid
>
> Hi,
>
> I have a class called "vector". And I would like to define a function
> "dot" which would return a dot product of any two "vectors". I want
> to call this function as follow: dot(x,y).
>
> Well, I can define a functions "dot" outside the class and it works
> exactly as I want. However,
On Jul 1, 5:01 pm, "[EMAIL PROTECTED]"
<[EMAIL PROTECTED]> wrote:
> On 1 juil, 22:43, Kurda Yon <[EMAIL PROTECTED]> wrote:
>
>
>
> > Hi,
>
> > I have a class called "vector". And I would like to define a function
> > "dot" which would return a dot product of any two "vectors". I want
> > to call t
On 1 juil, 22:43, Kurda Yon <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I have a class called "vector". And I would like to define a function
> "dot" which would return a dot product of any two "vectors". I want
> to call this function as follow: dot(x,y).
>
> Well, I can define a functions "dot" outside
Hi,
I have a class called "vector". And I would like to define a function
"dot" which would return a dot product of any two "vectors". I want
to call this function as follow: dot(x,y).
Well, I can define a functions "dot" outside the class and it works
exactly as I want. However, the problem is