[issue45135] dataclasses.asdict() incorrectly calls __deepcopy__() on values.

2021-09-08 Thread Thomas Fischbacher
Thomas Fischbacher added the comment: The current behavior deviates from the documentation in a way that might evade tests and hence has the potential to cause production outages. Is there a way to fix the documentation so that it correctly describes current behavior - without having to

[issue45135] dataclasses.asdict() incorrectly calls __deepcopy__() on values.

2021-09-08 Thread Eric V. Smith
Eric V. Smith added the comment: The intent was that asdict() returns something that, if mutated, doesn't affect the original object tree. I'd sort of like to just deprecate it, it's got a lot of corner cases that are poorly handled. It probably needs the same kind of controls that

[issue45135] dataclasses.asdict() incorrectly calls __deepcopy__() on values.

2021-09-08 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +eric.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45135] dataclasses.asdict() incorrectly calls __deepcopy__() on values.

2021-09-08 Thread Thomas Fischbacher
New submission from Thomas Fischbacher : This problem may also be the issue underlying some other dataclasses.asdict() bugs: