[issue35960] dataclasses.field does not preserve empty metadata object

2019-02-12 Thread Eric V. Smith
Eric V. Smith added the comment: Thanks for the patch! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue35960] dataclasses.field does not preserve empty metadata object

2019-02-12 Thread Eric V. Smith
Eric V. Smith added the comment: New changeset 0a834c18cdafa5447d4436878e64aa7a4e4dc817 by Eric V. Smith (Miss Islington (bot)) in branch '3.7': bpo-35960: Fix dataclasses.field throwing away empty metadata. (GH-11815) (GH-11826)

[issue35960] dataclasses.field does not preserve empty metadata object

2019-02-12 Thread miss-islington
Change by miss-islington : -- pull_requests: +11857 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35960] dataclasses.field does not preserve empty metadata object

2019-02-12 Thread Eric V. Smith
Eric V. Smith added the comment: New changeset b01786c8812c4cc24dd561b5941025bdd6f444c0 by Eric V. Smith (Christopher Hunt) in branch 'master': bpo-35960: Fix dataclasses.field throwing away empty metadata. (GH-11815)

[issue35960] dataclasses.field does not preserve empty metadata object

2019-02-11 Thread Eric V. Smith
Change by Eric V. Smith : -- assignee: -> eric.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35960] dataclasses.field does not preserve empty metadata object

2019-02-10 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +eric.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35960] dataclasses.field does not preserve empty metadata object

2019-02-10 Thread Christopher Hunt
Change by Christopher Hunt : -- keywords: +patch, patch, patch pull_requests: +11831, 11832, 11833 stage: -> patch review ___ Python tracker ___

[issue35960] dataclasses.field does not preserve empty metadata object

2019-02-10 Thread Christopher Hunt
Change by Christopher Hunt : -- keywords: +patch, patch pull_requests: +11831, 11832 stage: -> patch review ___ Python tracker ___

[issue35960] dataclasses.field does not preserve empty metadata object

2019-02-10 Thread Christopher Hunt
Change by Christopher Hunt : -- keywords: +patch pull_requests: +11831 stage: -> patch review ___ Python tracker ___ ___

[issue35960] dataclasses.field does not preserve empty metadata object

2019-02-10 Thread Christopher Hunt
New submission from Christopher Hunt : The metadata argument to dataclasses.field is not preserved in the resulting Field.metadata attribute if the argument is a mapping with length 0. The docs for dataclasses.field state: > metadata: This can be a mapping or None. None is treated as an empty