Hi Terry,
Thanks for your reply. But the reason I want to have that is for not
changing the functions which already based on translation functions.
If there is any idea how to bring parameter in static method, that will be
great.
Wei
On Wed, Oct 8, 2008 at 8:24 PM, Terry Reedy <[EMAIL PROTECTED]
Wei Guo wrote:
Hi Chris,
Thanks a lot for reply, you are right. I want to use this method as a
static method as:
translation = staticmethod( translation )
static methods are mostly useless in Python. Just put the definition of
translation outside of any class.
--
http://mail.python.org
Hi Chris,
Thanks a lot for reply, you are right. I want to use this method as a static
method as:
translation = staticmethod( translation )
I think that here the built in function pass None. So we can not pass any
self defined object for static method?
Best regards,
Wei
On Wed, Oct 8, 2008 at
On Wed, Oct 8, 2008 at 4:36 PM, Wei Guo <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I defined a class called vec3 which contains x, y, z and in another
> function, I tried to call a function which takes a vec3 as a parameter, but
> it seems that parameter is passed as a generic object and I can not access
Hi,
I defined a class called vec3 which contains x, y, z and in another
function, I tried to call a function which takes a vec3 as a parameter, but
it seems that parameter is passed as a generic object and I can not access x
, y, z in my vec3. Could anyone help me with that?
class vec3:
def