News for hackers. Stuff that matters.
Re:Implementing Rust's dbg! in Python by aftbit on Friday December 11, 2020 @05:25PM (#25392249)
Typo in your first eval example:

    >>> foo = {
    ...     'bar': 3
    ... }
    >>> print(eval("foo['bar'[]"))
    Traceback (most recent call last):
      File "<stdin>", line 1, in <module>
      File "<string>", line 1
        foo['bar'[]
                  ^
    SyntaxError: unexpected EOF while parsing

There are no comments on this comment yet.