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

bin missing from documentation #48484

Closed
vpython mannequin opened this issue Oct 30, 2008 · 4 comments
Closed

bin missing from documentation #48484

vpython mannequin opened this issue Oct 30, 2008 · 4 comments
Assignees
Labels
docs Documentation in the Doc dir

Comments

@vpython
Copy link
Mannequin

vpython mannequin commented Oct 30, 2008

BPO 4234
Nosy @birkenfeld, @mdickinson, @benjaminp
Files
  • issue4234.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 = 'https://github.com/birkenfeld'
    closed_at = <Date 2008-10-30.22:40:07.074>
    created_at = <Date 2008-10-30.00:17:48.816>
    labels = ['docs']
    title = 'bin missing from documentation'
    updated_at = <Date 2008-10-30.22:40:07.072>
    user = 'https://bugs.python.org/vpython'

    bugs.python.org fields:

    activity = <Date 2008-10-30.22:40:07.072>
    actor = 'benjamin.peterson'
    assignee = 'georg.brandl'
    closed = True
    closed_date = <Date 2008-10-30.22:40:07.074>
    closer = 'benjamin.peterson'
    components = ['Documentation']
    creation = <Date 2008-10-30.00:17:48.816>
    creator = 'v+python'
    dependencies = []
    files = ['11908']
    hgrepos = []
    issue_num = 4234
    keywords = ['patch']
    message_count = 4.0
    messages = ['75340', '75343', '75367', '75393']
    nosy_count = 4.0
    nosy_names = ['georg.brandl', 'mark.dickinson', 'benjamin.peterson', 'v+python']
    pr_nums = []
    priority = 'normal'
    resolution = 'fixed'
    stage = None
    status = 'closed'
    superseder = None
    type = None
    url = 'https://bugs.python.org/issue4234'
    versions = ['Python 2.6', 'Python 2.7']

    @vpython
    Copy link
    Mannequin Author

    vpython mannequin commented Oct 30, 2008

    Py3.0 has

    bin(x)
    Convert an integer number to a binary string. The result is a valid
    Python expression. If x is not a Python int object, it has to define an
    __index__() method that returns an integer. 

    Py2.6 doesn't document builtin bin.

    @vpython vpython mannequin assigned birkenfeld Oct 30, 2008
    @vpython vpython mannequin added the docs Documentation in the Doc dir label Oct 30, 2008
    @vpython
    Copy link
    Mannequin Author

    vpython mannequin commented Oct 30, 2008

    Perhaps there are other 3.0 builtins that were also missed, in the 2.6 docs?

    @mdickinson
    Copy link
    Member

    In addition, the description of binary literals is missing from the
    lexical analysis section of the reference manual, as is the description
    of new-style octal literals (i.e. "0o23" instead of "023").

    Here's a patch (against the trunk; 2.6 also needs fixing).

    @benjaminp
    Copy link
    Contributor

    Fixed in r67060.

    @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

    3 participants