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

patch for 1441408 compiler fails to spot extended slice #43006

Closed
logistix mannequin opened this issue Mar 10, 2006 · 3 comments
Closed

patch for 1441408 compiler fails to spot extended slice #43006

logistix mannequin opened this issue Mar 10, 2006 · 3 comments
Labels
interpreter-core (Objects, Python, Grammar, and Parser dirs)

Comments

@logistix
Copy link
Mannequin

logistix mannequin commented Mar 10, 2006

BPO 1446847
Nosy @ncoghlan
Files
  • extended_slice.diff: patch for extended slices
  • 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 2006-03-17.18:01:56.000>
    created_at = <Date 2006-03-10.00:21:40.000>
    labels = ['interpreter-core']
    title = 'patch for 1441408  compiler fails to spot extended slice'
    updated_at = <Date 2006-03-17.18:01:56.000>
    user = 'https://bugs.python.org/logistix'

    bugs.python.org fields:

    activity = <Date 2006-03-17.18:01:56.000>
    actor = 'ncoghlan'
    assignee = 'none'
    closed = True
    closed_date = None
    closer = None
    components = ['Interpreter Core']
    creation = <Date 2006-03-10.00:21:40.000>
    creator = 'logistix'
    dependencies = []
    files = ['7066']
    hgrepos = []
    issue_num = 1446847
    keywords = ['patch']
    message_count = 3.0
    messages = ['49707', '49708', '49709']
    nosy_count = 2.0
    nosy_names = ['logistix', 'ncoghlan']
    pr_nums = []
    priority = 'normal'
    resolution = 'duplicate'
    stage = None
    status = 'closed'
    superseder = None
    type = None
    url = 'https://bugs.python.org/issue1446847'
    versions = ['Python 2.5']

    @logistix
    Copy link
    Mannequin Author

    logistix mannequin commented Mar 10, 2006

    Attached is a patch for bug 1441408 (svn head compiler
    fails to spot extended slicing). The problem was that
    the new compiler was assuming that a null step value
    meant that normal slicing was being used. I did have
    to modify the .asdl for this to work, but after trying
    a few approaches this seemed like the simplest.

    @logistix logistix mannequin closed this as completed Mar 10, 2006
    @logistix logistix mannequin added the interpreter-core (Objects, Python, Grammar, and Parser dirs) label Mar 10, 2006
    @logistix logistix mannequin closed this as completed Mar 10, 2006
    @logistix logistix mannequin added the interpreter-core (Objects, Python, Grammar, and Parser dirs) label Mar 10, 2006
    @ncoghlan
    Copy link
    Contributor

    Logged In: YES
    user_id=1038590

    Is changing the AST for this is really necessary? Why not
    simply insert "None" as the step subexpression in the
    generated AST?

    @ncoghlan
    Copy link
    Contributor

    Logged In: YES
    user_id=1038590

    Applied patch 1452332 instead (simpler fix to same problem)

    @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