[issue26701] Documentation for int constructor mentions __int__ but not __trunc__

2018-05-10 Thread miss-islington
miss-islington added the comment: New changeset 22df4187c3882c6ec67180902e1151e65b03aee0 by Miss Islington (bot) in branch '3.7': bpo-26701: Tweak the documentation for special methods in int(). (GH-6741)

[issue26701] Documentation for int constructor mentions __int__ but not __trunc__

2018-05-10 Thread miss-islington
miss-islington added the comment: New changeset 7488c79b600cd173b0ccea13adb567d078e7b835 by Miss Islington (bot) in branch '3.6': bpo-26701: Tweak the documentation for special methods in int(). (GH-6741)

[issue26701] Documentation for int constructor mentions __int__ but not __trunc__

2018-05-10 Thread miss-islington
Change by miss-islington : -- pull_requests: +6439 ___ Python tracker ___

[issue26701] Documentation for int constructor mentions __int__ but not __trunc__

2018-05-10 Thread miss-islington
Change by miss-islington : -- pull_requests: +6438 ___ Python tracker ___

[issue26701] Documentation for int constructor mentions __int__ but not __trunc__

2018-05-10 Thread Nick Coghlan
Nick Coghlan added the comment: New changeset df00f048250b9a07195b0e3b1c5c0161fdcc9db8 by Nick Coghlan (Serhiy Storchaka) in branch 'master': bpo-26701: Tweak the documentation for special methods in int(). (GH-6741)

[issue26701] Documentation for int constructor mentions __int__ but not __trunc__

2018-05-09 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +6428 ___ Python tracker ___ ___

[issue26701] Documentation for int constructor mentions __int__ but not __trunc__

2018-03-12 Thread Nick Coghlan
Nick Coghlan added the comment: With both Eric's and Serhiy's updates merged, and issue 33039 broken out for the __index__ oddities, this is resolved now. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed

[issue26701] Documentation for int constructor mentions __int__ but not __trunc__

2018-03-10 Thread miss-islington
miss-islington added the comment: New changeset de8567e38c44b1509f0b906aec54437256848f14 by Miss Islington (bot) in branch '3.6': bpo-26701: Improve documentation for the rounding special methods. (GH-6054)

[issue26701] Documentation for int constructor mentions __int__ but not __trunc__

2018-03-10 Thread miss-islington
miss-islington added the comment: New changeset 89090789debb9d76892af566277cb71740808945 by Miss Islington (bot) in branch '3.7': bpo-26701: Improve documentation for the rounding special methods. (GH-6054)

[issue26701] Documentation for int constructor mentions __int__ but not __trunc__

2018-03-10 Thread miss-islington
Change by miss-islington : -- pull_requests: +5818 ___ Python tracker ___

[issue26701] Documentation for int constructor mentions __int__ but not __trunc__

2018-03-10 Thread miss-islington
Change by miss-islington : -- pull_requests: +5817 ___ Python tracker ___

[issue26701] Documentation for int constructor mentions __int__ but not __trunc__

2018-03-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 496431ffb6c29719332bf2af773349e8dd85e45a by Serhiy Storchaka in branch 'master': bpo-26701: Improve documentation for the rounding special methods. (#6054)

[issue26701] Documentation for int constructor mentions __int__ but not __trunc__

2018-03-10 Thread Nick Coghlan
Nick Coghlan added the comment: New changeset 1028ca4f04c14cf40a8f3e7951623a96ec0143c2 by Nick Coghlan (Miss Islington (bot)) in branch '3.6': bpo-26701: Add documentation for __trunc__ (GH-6050)

[issue26701] Documentation for int constructor mentions __int__ but not __trunc__

2018-03-10 Thread Nick Coghlan
Nick Coghlan added the comment: New changeset f34e0d60e27acff3f9604ec63e9de36878c3743a by Nick Coghlan (Miss Islington (bot)) in branch '3.7': bpo-26701: Add documentation for __trunc__ (GH-6049)

[issue26701] Documentation for int constructor mentions __int__ but not __trunc__

2018-03-10 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +5815 ___ Python tracker ___ ___

[issue26701] Documentation for int constructor mentions __int__ but not __trunc__

2018-03-10 Thread Nick Coghlan
Nick Coghlan added the comment: I think __trunc__ is special here, as it's called by a built-in type constructor, whereas __floor__ and __ceil__ really are specific to their respective math module functions. That said, I also wouldn't be opposed to listing all 4 methods

[issue26701] Documentation for int constructor mentions __int__ but not __trunc__

2018-03-10 Thread miss-islington
Change by miss-islington : -- pull_requests: +5811 ___ Python tracker ___

[issue26701] Documentation for int constructor mentions __int__ but not __trunc__

2018-03-10 Thread miss-islington
Change by miss-islington : -- pull_requests: +5810 ___ Python tracker ___

[issue26701] Documentation for int constructor mentions __int__ but not __trunc__

2018-03-10 Thread Nick Coghlan
Nick Coghlan added the comment: New changeset 308eab979d153f1ab934383dc08bc4546ced8b6c by Nick Coghlan (Eric Appelt) in branch 'master': bpo-26701: Add documentation for __trunc__ (GH-6022) https://github.com/python/cpython/commit/308eab979d153f1ab934383dc08bc4546ced8b6c

[issue26701] Documentation for int constructor mentions __int__ but not __trunc__

2018-03-08 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: What about __floor__ and __ceil__? I think all these three method do not deserve separate paragraphs in Doc/reference/datamodel.rst, but they should be grouped together with __round__. -- nosy: +serhiy.storchaka

[issue26701] Documentation for int constructor mentions __int__ but not __trunc__

2018-03-07 Thread Eric Appelt
Change by Eric Appelt : -- keywords: +patch pull_requests: +5788 stage: -> patch review ___ Python tracker ___

[issue26701] Documentation for int constructor mentions __int__ but not __trunc__

2016-04-06 Thread R. David Murray
R. David Murray added the comment: It is documented in the relevant PEP (pep 3141), but should indeed be added to the appropriate places in the regular documentation. -- nosy: +r.david.murray versions: +Python 3.6 ___ Python tracker

[issue26701] Documentation for int constructor mentions __int__ but not __trunc__

2016-04-06 Thread Robert Smallshire
New submission from Robert Smallshire: The documentation for the int(x) constructor explains that if possible, it delegates to x.__int__(). The documentation does not explain that there is a fallback to x.__trunc__() if x.__int__() is not available. The only mention of __trunc__ in the