On 2019-03-06, Marko Rauhamaa wrote:
> Rhodri James :
>> On 06/03/2019 14:15, Calvin Spealman wrote:
C++ (a language I have no respect for)
>>> This was uncalled for and inappropriate. Please keep discord civil.
>>
>> That was the civil version :-)
>
> C++ is a programming language without fe
Rhodri James :
> On 06/03/2019 14:15, Calvin Spealman wrote:
>>> C++ (a language I have no respect for)
>> This was uncalled for and inappropriate. Please keep discord civil.
>
> That was the civil version :-)
C++ is a programming language without feelings. It's nobody's ethnicity,
sexual orienta
On 06/03/2019 14:44, Chris Angelico wrote:
Ouch, did C++ burn you in the past?
I've tried and failed to learn the language three times. It's been
suggested that my mistake was using Stroustrop's book :-) There just
seem to be so much boilerplate and fiddly bits that it quickly gets too
com
On Thu, Mar 7, 2019 at 1:34 AM Rhodri James wrote:
>
> On 06/03/2019 14:15, Calvin Spealman wrote:
> >> C++ (a language I have no respect for)
> > This was uncalled for and inappropriate. Please keep discord civil.
>
> That was the civil version :-)
>
Ouch, did C++ burn you in the past?
IMO it's
On 06/03/2019 14:15, Calvin Spealman wrote:
C++ (a language I have no respect for)
This was uncalled for and inappropriate. Please keep discord civil.
That was the civil version :-)
--
Rhodri James *-* Kynesim Ltd
--
https://mail.python.org/mailman/listinfo/python-list
> C++ (a language I have no respect for)
This was uncalled for and inappropriate. Please keep discord civil.
On Wed, Mar 6, 2019 at 7:12 AM Rhodri James wrote:
> On 05/03/2019 22:39, Milt wrote:
> > The following code gives me unusual results - base on experience with
> C++.
> >
> > class Car:
On 05/03/2019 22:39, Milt wrote:
The following code gives me unusual results - base on experience with C++.
class Car:
# carColor = None
# mileage = None
def __init__(self, color = None, miles = None):
self.mileage = miles
self.carColor = color
def print(self):
On 3/5/2019 6:11 PM, Kevin Hu wrote:
Python is a language with very weak typing,
Python runtime objects are strongly dynamically typed. Their type/class
is one of their attributes. All classes are subclasses of class
'object'. Python names (variables) are untyped in a sense, or one could
On 3/5/19, Kevin Hu wrote:
>
> Python is a language with very weak typing, and it’ll happily shoehorn data
> into variables even when you don’t expect it to.
Python has strong typing, in that it doesn't implicitly coerce
unrelated types in expressions. However, it has no enforced static
typing of
Milt,
On 6/03/19 11:39 AM, Milt wrote:
The following code gives me unusual results - base on experience with C++.
class Car:
# carColor = None
# mileage = None
def __init__(self, color = None, miles = None):
self.mileage = miles
self.carColor = color
def print(self)
I believe for the correct behavior you’ll need:
myCar = Car(color=‘blue’, miles=15000)
myCar = Car(miles=25000, color=‘orange’)
In which case both objects will be initialized as the way you’d expect.
Python is a language with very weak typing, and it’ll happily shoehorn data
into variables ev
On Wed, Mar 6, 2019 at 10:01 AM Milt wrote:
>
> The following code gives me unusual results - base on experience with C++.
> def __init__(self, color = None, miles = None):
>self.mileage = miles
>self.carColor = color
>
> myCar = Car('blue', 15000)
> myCar = Car(25000, 'orange'
12 matches
Mail list logo