Issue 32499: Add dataclasses.is_dataclass(obj) - Python tracker (original) (raw)
This issue has been migrated to GitHub: https://github.com/python/cpython/issues/76680
classification
Title: | Add dataclasses.is_dataclass(obj) | ||
---|---|---|---|
Type: | enhancement | Stage: | resolved |
Components: | Library (Lib) | Versions: | Python 3.7 |
process
Status: | closed | Resolution: | fixed |
---|---|---|---|
Dependencies: | Superseder: | ||
Assigned To: | eric.smith | Nosy List: | eric.smith |
Priority: | normal | Keywords: | patch |
Created on 2018-01-05 20:50 by eric.smith, last changed 2022-04-11 14:58 by admin. This issue is now closed.
Pull Requests | |||
---|---|---|---|
URL | Status | Linked | Edit |
PR 5113 | merged | eric.smith,2018-01-06 15:57 |
Messages (3) | ||
---|---|---|
msg309523 - (view) | Author: Eric V. Smith (eric.smith) * ![]() |
Date: 2018-01-05 20:50 |
See https://mail.python.org/pipermail/python-dev/2018-January/151628.html and prior for the discussion. Add dataclasses.is_dataclass(obj) that returns True if obj is a dataclass class or instance, else returns False. | ||
msg309553 - (view) | Author: Eric V. Smith (eric.smith) * ![]() |
Date: 2018-01-06 16:11 |
I've updated the PEP, too. | ||
msg309561 - (view) | Author: Eric V. Smith (eric.smith) * ![]() |
Date: 2018-01-06 17:41 |
New changeset e7ba013d870012157f695ead7e3645c2828a7fc5 by Eric V. Smith in branch 'master': bpo-32499: Add dataclasses.is_dataclass(obj), which returns True if obj is a dataclass or an instance of one. (#5113) https://github.com/python/cpython/commit/e7ba013d870012157f695ead7e3645c2828a7fc5 |
History | |||
---|---|---|---|
Date | User | Action | Args |
2022-04-11 14:58:56 | admin | set | github: 76680 |
2018-01-06 17:44:16 | eric.smith | set | status: open -> closedresolution: fixedstage: patch review -> resolved |
2018-01-06 17:41:55 | eric.smith | set | messages: + |
2018-01-06 16:11:04 | eric.smith | set | messages: + |
2018-01-06 15:57:01 | eric.smith | set | keywords: + patchstage: patch reviewpull_requests: + <pull%5Frequest4979> |
2018-01-05 20:50:22 | eric.smith | create |