POV-Ray : Newsgroups : povray.off-topic : OO theory? Python. : Re: OO theory? Python. Server Time
28 Jul 2024 22:19:48 EDT (-0400)
  Re: OO theory? Python.  
From: Warp
Date: 15 Oct 2012 12:06:15
Message: <507c3477@news.povray.org>
Aydan <hes### [at] hendrik-sachsenet> wrote:
> [begin code]
> class vector(object):
>   def __init__(self,x,y,z):
>     self.__x=x
>     self.__y=y
>     self.__z=z

Is that really how you write OO code in Python? Is it just me, or does it
look like Python hasn't actually been specifically designed to be an OO
language?

-- 
                                                          - Warp


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.