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

_______________________________________________
Chennaipy mailing list
Chennaipy@python.org
https://mail.python.org/mailman/listinfo/chennaipy

Reply via email to