Bruno Desthuilliers wrote:
> Sambo a écrit :
>
>> By accident I assigned int to a class member 'count' which was
>> initialized to (empty) string and had no error till I tried to use it
>> as string, obviously. Why was there no error on assignment( near the
>> end ).
>
>
> Python is dynamical
Sambo a écrit :
> By accident I assigned int to a class member 'count' which was
> initialized to (empty) string and had no error till I tried to use it as
> string, obviously. Why was there no error on assignment( near the end ).
Python is dynamically typed - which means that it's not the name
Sambo wrote:
> By accident I assigned int to a class member 'count' which was
> initialized to (empty) string and had no error till I tried to
> use it as string, obviously. Why was there no error on assignment
> (near the end ).
Python uses dynamic typing, which means that objects have types,