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

Accessing attr dict at definition time of a class from a metaclass results in changed type. #62454

Closed
archardlias mannequin opened this issue Jun 18, 2013 · 2 comments
Closed
Labels
interpreter-core (Objects, Python, Grammar, and Parser dirs)

Comments

@archardlias
Copy link
Mannequin

archardlias mannequin commented Jun 18, 2013

BPO 18254
Nosy @birkenfeld
Files
  • bugreport_cpython3.2.3.py: Failed Test Case
  • 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 2013-10-14.14:27:51.148>
    created_at = <Date 2013-06-18.10:21:45.764>
    labels = ['interpreter-core']
    title = 'Accessing attr dict at definition time of a class from a metaclass results in changed type.'
    updated_at = <Date 2013-10-14.14:27:51.146>
    user = 'https://bugs.python.org/archardlias'

    bugs.python.org fields:

    activity = <Date 2013-10-14.14:27:51.146>
    actor = 'georg.brandl'
    assignee = 'none'
    closed = True
    closed_date = <Date 2013-10-14.14:27:51.148>
    closer = 'georg.brandl'
    components = ['Interpreter Core']
    creation = <Date 2013-06-18.10:21:45.764>
    creator = 'archardlias'
    dependencies = []
    files = ['30636']
    hgrepos = []
    issue_num = 18254
    keywords = []
    message_count = 2.0
    messages = ['191394', '199896']
    nosy_count = 2.0
    nosy_names = ['georg.brandl', 'archardlias']
    pr_nums = []
    priority = 'normal'
    resolution = 'out of date'
    stage = None
    status = 'closed'
    superseder = None
    type = None
    url = 'https://bugs.python.org/issue18254'
    versions = ['Python 3.2']

    @archardlias
    Copy link
    Mannequin Author

    archardlias mannequin commented Jun 18, 2013

    Accessing (just iterating or accessing in any way) the dict_proxy to the attribute dictionary in the MessageMeta metaclass, results in a change of "type" in any metaclass inheriting class definitions.

    Reproducible in CPython versions (tested so far):
    3.2.2
    3.2.3

    Works as of, or at least behaves as I subjectively intended to use it (only version tested)
    3.3.2

    @archardlias archardlias mannequin added the interpreter-core (Objects, Python, Grammar, and Parser dirs) label Jun 18, 2013
    @birkenfeld
    Copy link
    Member

    Only affects 3.2, so this won't be fixed anymore.

    @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)
    Projects
    None yet
    Development

    No branches or pull requests

    1 participant