Greg Kuhn added the comment:
I see, thank you all for the detailed investigation and explanation!!
Agreed Terry, anyone who reads the error should be able to parse it themselves
and see what the errors is. Pointing the user to the error site is the most
important piece
Greg Kuhn added the comment:
But doesn't the square bracket have no relevance here?
It's not within a curly bracketed string so shouldn't be treated specially.
I would have expected the error to be: SyntaxError: f-string: unmatched '}'.
Unless I need to
New submission from Greg Kuhn :
Hi All,
Is the below a bug? Shouldn't the interpreter be complaining about a curly
brace?
$ python
Python 3.8.5 (tags/v3.8.5:580fbb0, Jul 20 2020, 15:43:08) [MSC v.1926 32 bit
(Intel)] on win32
Type "help", "copyright", "
Greg Kuhn added the comment:
Fixed title
--
title: dataclasses replace raises an exception with an empty ->
dataclasses.replace raises an exception if InitVar with default argument is not
provided.
___
Python tracker
<https://bugs.pyth
New submission from Greg Kuhn :
I have a snippet below which runs fine on python 3.7.0 but raises a ValueError
exception on 3.7.1. I believe it's related to
https://bugs.python.org/issue33805.
The error: c:\python\lib\dataclasses.py:1219: ValueError
The script:
from dataclasses i