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

__div__ still documented in Python 3 #48044

Closed
mgiuca mannequin opened this issue Sep 6, 2008 · 3 comments
Closed

__div__ still documented in Python 3 #48044

mgiuca mannequin opened this issue Sep 6, 2008 · 3 comments
Assignees
Labels
docs Documentation in the Doc dir

Comments

@mgiuca
Copy link
Mannequin

mgiuca mannequin commented Sep 6, 2008

BPO 3794
Nosy @birkenfeld
Files
  • datamodel.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-09-06.17:43:00.138>
    created_at = <Date 2008-09-06.13:54:30.045>
    labels = ['docs']
    title = '__div__ still documented in Python 3'
    updated_at = <Date 2008-09-06.17:44:02.208>
    user = 'https://bugs.python.org/mgiuca'

    bugs.python.org fields:

    activity = <Date 2008-09-06.17:44:02.208>
    actor = 'georg.brandl'
    assignee = 'georg.brandl'
    closed = True
    closed_date = <Date 2008-09-06.17:43:00.138>
    closer = 'georg.brandl'
    components = ['Documentation']
    creation = <Date 2008-09-06.13:54:30.045>
    creator = 'mgiuca'
    dependencies = []
    files = ['11406']
    hgrepos = []
    issue_num = 3794
    keywords = ['patch']
    message_count = 3.0
    messages = ['72669', '72674', '72676']
    nosy_count = 2.0
    nosy_names = ['georg.brandl', 'mgiuca']
    pr_nums = []
    priority = 'normal'
    resolution = 'fixed'
    stage = None
    status = 'closed'
    superseder = None
    type = None
    url = 'https://bugs.python.org/issue3794'
    versions = ['Python 3.0']

    @mgiuca
    Copy link
    Mannequin Author

    mgiuca mannequin commented Sep 6, 2008

    The "special method names" section of the Python 3.0 documentation still
    mentions the __div__ method. I believe this method has been totally
    removed in Python 3 in favour of __truediv__. (Perhaps I am mistaken,
    but 'int' object has no attribute '__div__', so I assume this is correct).

    Note here:
    http://docs.python.org/dev/3.0/reference/datamodel.html#object.\_\_div__

    __div__ is still documented. Most of the __div__/truediv section
    describes the issues distinguishing the two. Now that __div__ is gone,
    surely there is no need for this section, and __truediv__ can just be
    pushed up above with all the other operators?

    Attached a patch doing that. Also deleted rdiv and idiv from the
    following sections. (And one minor extra fix: added // to the list
    of operators in reflected methods, since it was missing - note this
    required a reflow of text, which is why the diff shows the whole
    paragraph changing).

    Change log:

    Doc/reference/datamodel.rst: Removed section under "emulating numeric
    types" about difference between __div__ and __truediv__, since __div__
    has been removed from the language. Also deleted __rdiv__ and __idiv__
    from the following sections, also removed.

    @mgiuca mgiuca mannequin assigned birkenfeld Sep 6, 2008
    @mgiuca mgiuca mannequin added the docs Documentation in the Doc dir label Sep 6, 2008
    @birkenfeld
    Copy link
    Member

    Fixed in r66260.

    @birkenfeld
    Copy link
    Member

    Uh, I meant r66261. Thanks for the 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
    docs Documentation in the Doc dir
    Projects
    None yet
    Development

    No branches or pull requests

    1 participant