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

operator precedence table is wrong #49560

Closed
ggenellina mannequin opened this issue Feb 19, 2009 · 2 comments
Closed

operator precedence table is wrong #49560

ggenellina mannequin opened this issue Feb 19, 2009 · 2 comments
Assignees
Labels
docs Documentation in the Doc dir

Comments

@ggenellina
Copy link
Mannequin

ggenellina mannequin commented Feb 19, 2009

BPO 5310
Nosy @birkenfeld
Files
  • expressions.diff: operator precedence table
  • 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/birkenfeld'
    closed_at = <Date 2009-02-19.08:30:21.962>
    created_at = <Date 2009-02-19.03:50:17.574>
    labels = ['docs']
    title = 'operator precedence table is wrong'
    updated_at = <Date 2009-02-19.08:30:21.961>
    user = 'https://bugs.python.org/ggenellina'

    bugs.python.org fields:

    activity = <Date 2009-02-19.08:30:21.961>
    actor = 'georg.brandl'
    assignee = 'georg.brandl'
    closed = True
    closed_date = <Date 2009-02-19.08:30:21.962>
    closer = 'georg.brandl'
    components = ['Documentation']
    creation = <Date 2009-02-19.03:50:17.574>
    creator = 'ggenellina'
    dependencies = []
    files = ['13135']
    hgrepos = []
    issue_num = 5310
    keywords = ['patch']
    message_count = 2.0
    messages = ['82451', '82463']
    nosy_count = 2.0
    nosy_names = ['georg.brandl', 'ggenellina']
    pr_nums = []
    priority = 'normal'
    resolution = 'fixed'
    stage = None
    status = 'closed'
    superseder = None
    type = None
    url = 'https://bugs.python.org/issue5310'
    versions = ['Python 2.6', 'Python 2.5', 'Python 2.4', 'Python 3.0', 'Python 3.1', 'Python 2.7']

    @ggenellina
    Copy link
    Mannequin Author

    ggenellina mannequin commented Feb 19, 2009

    The operator precedence table is wrong.
    <http://docs.python.org/reference/
    expressions.html#summary>
    shows "in"/"not in" having less priority than
    comparisons like "==", but that's not true:

    py> 2 in (1,2) == True
    False

    The .rst file is wrong, as well as all the
    generated .html files since version 2.1 at least.
    But the original Latex source lists them in the
    same group.

    Looks like the latex->html and latex->rst tools
    both had the same problem with this kind of
    table construct.

    The attached patch is based on the ref5.tex file
    included in Python 2.5

    @ggenellina ggenellina mannequin assigned birkenfeld Feb 19, 2009
    @ggenellina ggenellina mannequin added the docs Documentation in the Doc dir label Feb 19, 2009
    @birkenfeld
    Copy link
    Member

    Fixed in r69769.

    @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
    docs Documentation in the Doc dir
    Projects
    None yet
    Development

    No branches or pull requests

    1 participant