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 2018-01-06 17:44 by eric.smith. 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) * (Python committer) 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) * (Python committer) Date: 2018-01-06 16:11
I've updated the PEP, too.
msg309561 - (view) Author: Eric V. Smith (eric.smith) * (Python committer) 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
2018-01-06 17:44:16eric.smithsetstatus: open -> closed
resolution: fixed
stage: patch review -> resolved
2018-01-06 17:41:55eric.smithsetmessages: + msg309561
2018-01-06 16:11:04eric.smithsetmessages: + msg309553
2018-01-06 15:57:01eric.smithsetkeywords: + patch
stage: patch review
pull_requests: + pull_request4979
2018-01-05 20:50:22eric.smithcreate