[Chennaipy] How to know and prevent type cast errors?

Shrinivasan T tshrinivasan at gmail.com
Thu Sep 24 23:12:53 EDT 2020


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?

I use emacs editor in Ubuntu Linux.

Adding typecast is the only way to avoid this. But how do you all remember
this?

Is there any easy reminder or error pointer in any other IDE or Tools?

Thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/chennaipy/attachments/20200925/0d6c93e2/attachment.html>


More information about the Chennaipy mailing list