Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add dataclasses.is_dataclass(obj) #76680

Closed
ericvsmith opened this issue Jan 5, 2018 · 3 comments
Closed

Add dataclasses.is_dataclass(obj) #76680

ericvsmith opened this issue Jan 5, 2018 · 3 comments
Assignees
Labels
3.7 (EOL) end of life stdlib Python modules in the Lib dir type-feature A feature request or enhancement

Comments

@ericvsmith
Copy link
Member

BPO 32499
Nosy @ericvsmith
PRs
  • bpo-32499: Add dataclasses.is_dataclass(obj), which returns True if obj is a dataclass or an instance of one. #5113
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = 'https://github.com/ericvsmith'
    closed_at = <Date 2018-01-06.17:44:16.056>
    created_at = <Date 2018-01-05.20:50:22.771>
    labels = ['3.7', 'type-feature', 'library']
    title = 'Add dataclasses.is_dataclass(obj)'
    updated_at = <Date 2018-01-06.17:44:16.055>
    user = 'https://github.com/ericvsmith'

    bugs.python.org fields:

    activity = <Date 2018-01-06.17:44:16.055>
    actor = 'eric.smith'
    assignee = 'eric.smith'
    closed = True
    closed_date = <Date 2018-01-06.17:44:16.056>
    closer = 'eric.smith'
    components = ['Library (Lib)']
    creation = <Date 2018-01-05.20:50:22.771>
    creator = 'eric.smith'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 32499
    keywords = ['patch']
    message_count = 3.0
    messages = ['309523', '309553', '309561']
    nosy_count = 1.0
    nosy_names = ['eric.smith']
    pr_nums = ['5113']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'enhancement'
    url = 'https://bugs.python.org/issue32499'
    versions = ['Python 3.7']

    @ericvsmith
    Copy link
    Member Author

    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.

    @ericvsmith ericvsmith added the 3.7 (EOL) end of life label Jan 5, 2018
    @ericvsmith ericvsmith self-assigned this Jan 5, 2018
    @ericvsmith ericvsmith added stdlib Python modules in the Lib dir type-feature A feature request or enhancement labels Jan 5, 2018
    @ericvsmith
    Copy link
    Member Author

    I've updated the PEP, too.

    @ericvsmith
    Copy link
    Member Author

    New changeset e7ba013 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. (bpo-5113)
    e7ba013

    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    3.7 (EOL) end of life stdlib Python modules in the Lib dir type-feature A feature request or enhancement
    Projects
    None yet
    Development

    No branches or pull requests

    1 participant