Ok, thanks for your time.
On 17. 03. 22 11:12, Irtiza wrote:
> This will be a super small Bug Report
>
> So here it is.
>
> 123.123.123
>
> It gives me
>
> 123.123.123
> ^^^^^^^^^^^
> SyntaxError: invalid syntax. Perhaps you forgot a comma?
>
> Shouldn't It be like: SyntaxError: invalid syntax. Number cannot contain
> 3 decimals?
Python has no way of knowing that you wanted to write a (single) number.
There are many possibilities of what you might have meant, for example:
123, 123, 123
123123123
123.123, 123
123, 123.123
123.123123
123_123_123
That's why there's “perhaps” in the error message. In many similar cases
it's a forgotten comma, but not always.