OT: This Swift thing
Sturla Molden
sturla.molden at gmail.com
Thu Jun 5 19:02:59 EDT 2014
Alain Ketterlin <alain at dpt-info.u-strasbg.fr> wrote:
>> Perhaps. Python has strong type safety.
>
> Come on.
You cannot spoof the type of an object in Python. In C++ you can downcast
any address to void* and make an object be treated as anything. You cannot
make Python treat an int as a float and return garbage. Types in Python are
strictly enforced.
Sturla
More information about the Python-list
mailing list