New issue 3100: " ValueError: Unmatched '{' " while formatting "{:[XYZ}"
https://bitbucket.org/pypy/pypy/issues/3100/valueerror-unmatched-while-formatting-xyz

Adrien Gabillaud:

Hi. I’m sorry if this is alreay solved in latest release, I was not able to 
test with most recent version of PyPy, but I preferred to report this just in 
case.

ā€Œ

This code snippet:

```
class Foo:
    def __format__(self, f):
        return "!"

print("{:[XYZ}".format(Foo()))
```

Raise an error `ValueError: Unmatched '{'` on PyPy 3.5 while it works fine on 
CPython.

ā€Œ


_______________________________________________
pypy-issue mailing list
pypy-issue@python.org
https://mail.python.org/mailman/listinfo/pypy-issue

Reply via email to