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

Make old-style classes weak referenceable #52515

Closed
pitrou opened this issue Mar 30, 2010 · 3 comments
Closed

Make old-style classes weak referenceable #52515

pitrou opened this issue Mar 30, 2010 · 3 comments
Labels
interpreter-core (Objects, Python, Grammar, and Parser dirs) type-feature A feature request or enhancement

Comments

@pitrou
Copy link
Member

pitrou commented Mar 30, 2010

BPO 8268
Nosy @amauryfa, @pitrou
Files
  • weakref-classobj.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 = None
    closed_at = <Date 2010-03-31.21:38:49.209>
    created_at = <Date 2010-03-30.22:58:12.632>
    labels = ['interpreter-core', 'type-feature']
    title = 'Make old-style classes weak referenceable'
    updated_at = <Date 2010-03-31.21:38:49.206>
    user = 'https://github.com/pitrou'

    bugs.python.org fields:

    activity = <Date 2010-03-31.21:38:49.206>
    actor = 'pitrou'
    assignee = 'none'
    closed = True
    closed_date = <Date 2010-03-31.21:38:49.209>
    closer = 'pitrou'
    components = ['Interpreter Core']
    creation = <Date 2010-03-30.22:58:12.632>
    creator = 'pitrou'
    dependencies = []
    files = ['16702']
    hgrepos = []
    issue_num = 8268
    keywords = ['patch']
    message_count = 3.0
    messages = ['101957', '101958', '102035']
    nosy_count = 3.0
    nosy_names = ['amaury.forgeotdarc', 'pitrou', 'stutzbach']
    pr_nums = []
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'enhancement'
    url = 'https://bugs.python.org/issue8268'
    versions = ['Python 2.7']

    @pitrou
    Copy link
    Member Author

    pitrou commented Mar 30, 2010

    New-style classes are weak referenceable, but old-style classes are not.
    For a proper implementation of ABC caches without any memory leaks (see bpo-2521), this limitation should be raised.

    @pitrou pitrou added interpreter-core (Objects, Python, Grammar, and Parser dirs) type-feature A feature request or enhancement labels Mar 30, 2010
    @pitrou
    Copy link
    Member Author

    pitrou commented Mar 30, 2010

    Here is a patch.

    @pitrou
    Copy link
    Member Author

    pitrou commented Mar 31, 2010

    Fixed in r79535.

    @pitrou pitrou closed this as completed Mar 31, 2010
    @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
    interpreter-core (Objects, Python, Grammar, and Parser dirs) type-feature A feature request or enhancement
    Projects
    None yet
    Development

    No branches or pull requests

    1 participant