Weak Type Ability for Python
MRAB
python at mrabarnett.plus.com
Wed Apr 12 22:36:22 EDT 2023
On 2023-04-13 03:21, Cameron Simpson wrote:
> On 12Apr2023 22:12, avi.e.gross at gmail.com <avi.e.gross at gmail.com> wrote:
>>I suspect the OP is thinking of languages like PERL or JAVA which guess
>>for
>>you and make such conversions when it seems to make sense.
>
> JavaScript guesses. What a nightmare. Java acts like Python and will
> forbid it on type grounds (at compile time with Java, being staticly
> typed).
>
I thought that in Java you can, in fact, concatenate a string and an
int, so I did a quick search online and it appears that you can.
More information about the Python-list
mailing list