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

float.as_integer_ratio method is not documented #47538

Closed
mdickinson opened this issue Jul 5, 2008 · 9 comments
Closed

float.as_integer_ratio method is not documented #47538

mdickinson opened this issue Jul 5, 2008 · 9 comments
Assignees
Labels
docs Documentation in the Doc dir

Comments

@mdickinson
Copy link
Member

BPO 3288
Nosy @akuchling, @birkenfeld, @rhettinger, @mdickinson
Files
  • issue3288.patch: Probably a solution for this issue.
  • float-docstring.txt: Docstring patches to float
  • stdtypes.txt: as_integer_ratio patch
  • tutorial_hex.patch: Mention float.as_integer_ratio and float.hex in tutorial.
  • 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/rhettinger'
    closed_at = <Date 2008-10-05.16:47:00.725>
    created_at = <Date 2008-07-05.10:41:17.439>
    labels = ['docs']
    title = 'float.as_integer_ratio method is not documented'
    updated_at = <Date 2008-10-08.16:45:21.704>
    user = 'https://github.com/mdickinson'

    bugs.python.org fields:

    activity = <Date 2008-10-08.16:45:21.704>
    actor = 'georg.brandl'
    assignee = 'rhettinger'
    closed = True
    closed_date = <Date 2008-10-05.16:47:00.725>
    closer = 'rhettinger'
    components = ['Documentation']
    creation = <Date 2008-07-05.10:41:17.439>
    creator = 'mark.dickinson'
    dependencies = []
    files = ['10918', '11481', '11482', '11494']
    hgrepos = []
    issue_num = 3288
    keywords = ['patch']
    message_count = 9.0
    messages = ['69277', '69849', '73155', '73157', '73161', '73251', '74347', '74353', '74533']
    nosy_count = 5.0
    nosy_names = ['akuchling', 'georg.brandl', 'rhettinger', 'mark.dickinson', 'segfaulthunter']
    pr_nums = []
    priority = 'normal'
    resolution = 'fixed'
    stage = None
    status = 'closed'
    superseder = None
    type = None
    url = 'https://bugs.python.org/issue3288'
    versions = ['Python 2.6', 'Python 3.0']

    @mdickinson
    Copy link
    Member Author

    The float.as_integer_ratio method needs to be documented somewhere other
    than whatsnew/2.6.rst.

    @mdickinson mdickinson added the docs Documentation in the Doc dir label Jul 5, 2008
    @rhettinger rhettinger assigned rhettinger and unassigned birkenfeld Jul 11, 2008
    @segfaulthunter
    Copy link
    Mannequin

    segfaulthunter mannequin commented Jul 16, 2008

    I tried to include the method in the Python 3.0 Tutorial but also to
    mention problems with floating point arithmetic that express in
    returning different numbers than what one entered.

    @akuchling
    Copy link
    Member

    While writing docs for as_integer_ratio(), I noticed a few typos in the
    docstrings of the new float methods. Patch attached.

    @akuchling
    Copy link
    Member

    The attached patch documents the as_integer_ratio method; I'll commit it
    once Barry allows commits.

    @akuchling
    Copy link
    Member

    Patch committed in rev. 66435.

    Do we want to mention it in the tutorial? If not,
    this issue could now be closed.

    @mdickinson
    Copy link
    Member Author

    Do we want to mention it in the tutorial? If not,
    this issue could now be closed.

    I think it might be worth mentioning both this and float.hex in the
    tutorial---it would fit well into the floating-point issues section.

    Here's a patch.

    @rhettinger
    Copy link
    Contributor

    Committed for Py3.0 in r66807 .

    @akuchling
    Copy link
    Member

    Should I backport the tutorial patch to the 2.6 tutorial?

    @birkenfeld
    Copy link
    Member

    Would be nice, yes.

    @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

    4 participants