New submission from Bruce Eckel :
When creating a dataclass using members of other classes that have overridden
their __str__ methods, the __str__ method synthesized by the dataclass ignores
the overridden __str__ methods in its component members.
Demonstrated in attached file
Bruce Eckel added the comment:
Oops. That does in fact work. How do I remove the bug report?
*Bruce Eckel*
HappyPathProgramming.com
SummerTechForum.com
MindViewLLC.com
Blog: BruceEckel.com
EvolveWork.co
WinterTechForum.com <http://www.WinterTechForum.com>
OnJava8.com <http://www.On
New submission from Bruce Eckel:
This looks suspicious to me, like it could be a library bug, but before chasing
it down I was hoping someone might be able to tell me whether I might be on to
something:
Traceback (most recent call last):
File "update_extracted_example_output.py"
Bruce Eckel added the comment:
Sorry, I thought maybe the error message would be indicative of something.
Here's the re:
find_output = re.compile(r"/\* (Output:.*)\*/", re.DOTALL)
Here's the program:
#! py -3
# Requires Python 3.5
# Updates generated output into extrac
Bruce Eckel added the comment:
Urk. There was exactly a \g in the input. Sorry for the bother.
--
resolution: -> not a bug
___
Python tracker
<http://bugs.python.org/issu
Bruce Eckel added the comment:
Thank you ebarry, very helpful. Tim, sorry I missed you at Pycon.
--
___
Python tracker
<http://bugs.python.org/issue27586>
___
___