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

Ellipsis not copyable #46712

Closed
mitsuhiko opened this issue Mar 22, 2008 · 2 comments
Closed

Ellipsis not copyable #46712

mitsuhiko opened this issue Mar 22, 2008 · 2 comments
Assignees
Labels
stdlib Python modules in the Lib dir type-feature A feature request or enhancement

Comments

@mitsuhiko
Copy link
Member

BPO 2460
Nosy @rhettinger, @mitsuhiko
Files
  • ellipsis.diff: Patch
  • 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/rhettinger'
    closed_at = <Date 2008-03-24.08:17:54.926>
    created_at = <Date 2008-03-22.23:32:54.527>
    labels = ['type-feature', 'library']
    title = 'Ellipsis not copyable'
    updated_at = <Date 2008-03-24.08:17:54.925>
    user = 'https://github.com/mitsuhiko'

    bugs.python.org fields:

    activity = <Date 2008-03-24.08:17:54.925>
    actor = 'rhettinger'
    assignee = 'rhettinger'
    closed = True
    closed_date = <Date 2008-03-24.08:17:54.926>
    closer = 'rhettinger'
    components = ['Library (Lib)']
    creation = <Date 2008-03-22.23:32:54.527>
    creator = 'aronacher'
    dependencies = []
    files = ['9821']
    hgrepos = []
    issue_num = 2460
    keywords = ['patch']
    message_count = 2.0
    messages = ['64347', '64398']
    nosy_count = 2.0
    nosy_names = ['rhettinger', 'aronacher']
    pr_nums = []
    priority = 'normal'
    resolution = 'accepted'
    stage = None
    status = 'closed'
    superseder = None
    type = 'enhancement'
    url = 'https://bugs.python.org/issue2460'
    versions = ['Python 2.6']

    @mitsuhiko
    Copy link
    Member Author

    Currently python raises an exception if one tries to copy or deepcopy
    Ellpisis. The former is usually no problem but if an ellipsis ends up
    on an object and becomes deepcopied this is pretty annoying.

    The patch provided adds Ellipsis to the copy.py registry with the same
    treatment None and other immutable types get.

    @mitsuhiko mitsuhiko added type-bug An unexpected behavior, bug, or error stdlib Python modules in the Lib dir labels Mar 22, 2008
    @rhettinger rhettinger self-assigned this Mar 23, 2008
    @rhettinger rhettinger added type-feature A feature request or enhancement and removed type-bug An unexpected behavior, bug, or error labels Mar 23, 2008
    @rhettinger
    Copy link
    Contributor

    Thanks for the patch. Applied in r61841.

    @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
    stdlib Python modules in the Lib dir type-feature A feature request or enhancement
    Projects
    None yet
    Development

    No branches or pull requests

    2 participants