[issue33805] dataclasses: replace() give poor error message if using InitVar

2018-06-23 Thread Eric V. Smith
Change by Eric V. Smith : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue33805] dataclasses: replace() give poor error message if using InitVar

2018-06-23 Thread miss-islington
miss-islington added the comment: New changeset bbef7abe922edadc7a1679c19d6053240bf600d5 by Miss Islington (bot) in branch '3.7': bpo-33805: Improve error message of dataclasses.replace() (GH-7580) https://github.com/python/cpython/commit/bbef7abe922edadc7a1679c19d6053240bf600d5 --

[issue33805] dataclasses: replace() give poor error message if using InitVar

2018-06-23 Thread miss-islington
Change by miss-islington : -- pull_requests: +7483 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue33805] dataclasses: replace() give poor error message if using InitVar

2018-06-23 Thread Eric V. Smith
Eric V. Smith added the comment: New changeset 3d70f7aef614c396f516b5fccedeebe98598714d by Eric V. Smith (Dong-hee Na) in branch 'master': bpo-33805: Improve error message of dataclasses.replace() (GH-7580) https://github.com/python/cpython/commit/3d70f7aef614c396f516b5fccedeebe98598714d --

[issue33805] dataclasses: replace() give poor error message if using InitVar

2018-06-09 Thread Dong-hee Na
Change by Dong-hee Na : -- keywords: +patch pull_requests: +7203 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list

[issue33805] dataclasses: replace() give poor error message if using InitVar

2018-06-09 Thread Dong-hee Na
Dong-hee Na added the comment: @eric.smith Can I take a look this issue? -- nosy: +corona10 ___ Python tracker ___ ___ Python-bugs-

[issue33805] dataclasses: replace() give poor error message if using InitVar

2018-06-08 Thread Eric V. Smith
New submission from Eric V. Smith : If a dataclass contains an InitVar without a default value, that InitVar must be specified in the call to replace(). This is because replace() works by first creating a new object, and InitVars without defaults, by definition, must be specified when creatin