friendly-traceback / friendly

Friendly-traceback's version used in most situations
https://friendly-traceback.github.io/docs/index.html
MIT License
40 stars 5 forks source link

Points used as number separators #54

Closed JulienPalard closed 2 weeks ago

JulienPalard commented 2 months ago

Long time no see, hope you're doing well Andre!

Here's an interesting example from hkis:

        Traceback (most recent call last):
          File "HOME:/solution.py", line 1
            print(21.900 * 43.800 * 1.051.200)
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^
        SyntaxError: invalid syntax. Perhaps you forgot a comma?

I think the pattern to spot is 1.051.200, I mean where the dot is used multiple times, intended as a separator. A good occasion to remind that underscore can be used instead :)

aroberge commented 2 weeks ago

Closing as it has been now recorded for friendly-traceback (instead of friendly) as it is where the fix will be needed.