[Chennaipy] How to know and prevent type cast errors?
Vijay Kumar
vijaykumar at zilogic.com
Thu Sep 24 23:55:35 EDT 2020
On 25/09/20 8:42 am, Shrinivasan T wrote:
> Hello all,
>
> I have few programs that fail due to string concating error.
>
> result = variableA + variableB
>
> When variableB is int, it gives type error.
>
> Usually I forget to add type casting for the variables.
>
> Why to avoid this frequent error?
>
How about using typing hints and running a static type checker?
Regards,
Vijay
More information about the Chennaipy
mailing list