Robin Becker wrote:
Python is often put forward as a as a finger friendly language, but we
have capitals encouraged for user class names and for some common values
eg None, True, False these are required.
And I'm glad it is, or else I'll get a finger-sore and an eye-sore
--
http://mail.pyth
On Sep 14, 2009, at 1:55 AM, Robin Becker wrote:
Bruno Desthuilliers wrote:
pep08 : class names should be Capitalized.
Also, if you're using Python 2.x, make it:
class Primitive(object):
#...
...
I find it remarkable that the most primitive classes appear to break
the pep08 convention
Bruno Desthuilliers wrote:
Daniel Santos a écrit :
Here goes,
I have a base class that is the following :
class primitive:
pep08 : class names should be Capitalized.
Also, if you're using Python 2.x, make it:
class Primitive(object):
#...
...
I find it remarkable that the most pr
Daniel Santos a écrit :
Here goes,
I have a base class that is the following :
class primitive:
pep08 : class names should be Capitalized.
Also, if you're using Python 2.x, make it:
class Primitive(object):
#...
def __init__(self):
self.name = ""
On Sep 13, 7:34 pm, Daniel Santos wrote:
> Here goes,
>
> I have a base class that is the following :
>
> class primitive:
>
> def __init__(self):
> self.name = ""
> self.transforms = []
>
> def copyInternalState(self, sourceObj, copyName):
>
Here goes,
I have a base class that is the following :
class primitive:
def __init__(self):
self.name = ""
self.transforms = []
def copyInternalState(self, sourceObj, copyName):
return null
def copy(self, copyName):
Cheers,
Chris
--
http://blog.rebertia.com
On Sat, Sep 12, 2009 at 8:22 PM, André wrote:
> On Sep 12, 11:48 pm, Daniel Luis dos Santos
> wrote:
>> Hello,
>>
>> I have an object definition :
>>
>> class primitive:
>>
>> def __init__(self)
>> self.name = ""
>>
On Sep 12, 11:48 pm, Daniel Luis dos Santos
wrote:
> Hello,
>
> I have an object definition :
>
> class primitive:
>
> def __init__(self)
> self.name = ""
> self.transforms = []
>
> def copy(self, copyName)
>
> copy = self.copyInterna