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 syntax for dynamic attribute access #44572

Closed
bennorth mannequin opened this issue Feb 11, 2007 · 2 comments
Closed

Add syntax for dynamic attribute access #44572

bennorth mannequin opened this issue Feb 11, 2007 · 2 comments
Labels
interpreter-core (Objects, Python, Grammar, and Parser dirs)

Comments

@bennorth
Copy link
Mannequin

bennorth mannequin commented Feb 11, 2007

BPO 1657573
Nosy @bennorth
Files
  • dynamic-attributes.patch.trunk.20070211: Patch against SVN trunk as of 20070211
  • 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 2007-03-06.09:59:31.000>
    created_at = <Date 2007-02-11.23:00:43.000>
    labels = ['interpreter-core']
    title = 'Add syntax for dynamic attribute access'
    updated_at = <Date 2007-03-06.09:59:31.000>
    user = 'https://github.com/bennorth'

    bugs.python.org fields:

    activity = <Date 2007-03-06.09:59:31.000>
    actor = 'bennorth'
    assignee = 'none'
    closed = True
    closed_date = None
    closer = None
    components = ['Interpreter Core']
    creation = <Date 2007-02-11.23:00:43.000>
    creator = 'bennorth'
    dependencies = []
    files = ['7758']
    hgrepos = []
    issue_num = 1657573
    keywords = ['patch']
    message_count = 2.0
    messages = ['51857', '51858']
    nosy_count = 1.0
    nosy_names = ['bennorth']
    pr_nums = []
    priority = 'normal'
    resolution = None
    stage = None
    status = 'closed'
    superseder = None
    type = None
    url = 'https://bugs.python.org/issue1657573'
    versions = ['Python 2.6']

    @bennorth
    Copy link
    Mannequin Author

    bennorth mannequin commented Feb 11, 2007

    Add syntax to allow easier access to attributes when
    attribute name known only at run-time. E.g., replace

    setattr(obj, attr_name, getattr(obj, attr_name) + 1)

    with

    obj.(attr_name) += 1

    For further discussion, see PEP-363 [PROVISIONAL NUMBER]

    @bennorth bennorth mannequin closed this as completed Feb 11, 2007
    @bennorth bennorth mannequin added the interpreter-core (Objects, Python, Grammar, and Parser dirs) label Feb 11, 2007
    @bennorth bennorth mannequin closed this as completed Feb 11, 2007
    @bennorth bennorth mannequin added the interpreter-core (Objects, Python, Grammar, and Parser dirs) label Feb 11, 2007
    @bennorth
    Copy link
    Mannequin Author

    bennorth mannequin commented Mar 6, 2007

    PEP rejected; closing patch.

    @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

    0 participants