Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(205217)

#16036: simplify int() signature docs

Can't Edit
Can't Publish+Mail
Start Review
Created:
7 years, 2 months ago by chris.jerdonek
Modified:
7 years, 2 months ago
Reviewers:
storchaka, ezio.melotti, pybugs
CC:
Georg, rhettinger, terry.reedy, ezio.melotti, eric.araujo, cvrebert, cjerdonek, docs_python.org, tshepang, devnull_psf.upfronthosting.co.za, storchaka
Visibility:
Public.

Patch Set 1 #

Patch Set 2 #

Patch Set 3 #

Total comments: 4

Patch Set 4 #

Total comments: 5
Unified diffs Side-by-side diffs Delta from patch set Stats Patch
Doc/library/functions.rst View 1 2 3 1 chunk +12 lines, -7 lines 5 comments Download

Messages

Total messages: 7
storchaka_gmail.com
http://bugs.python.org/review/16036/diff/6073/Doc/library/functions.rst File Doc/library/functions.rst (right): http://bugs.python.org/review/16036/diff/6073/Doc/library/functions.rst#newcode639 Doc/library/functions.rst:639: If *base* is given, then *x* must be a ...
7 years, 2 months ago #1
storchaka_gmail.com
http://bugs.python.org/review/16036/diff/6073/Doc/library/functions.rst File Doc/library/functions.rst (right): http://bugs.python.org/review/16036/diff/6073/Doc/library/functions.rst#newcode637 Doc/library/functions.rst:637: For floating point numbers, this truncates towards zero. I ...
7 years, 2 months ago #2
cjerdonek
http://bugs.python.org/review/16036/diff/6073/Doc/library/functions.rst File Doc/library/functions.rst (right): http://bugs.python.org/review/16036/diff/6073/Doc/library/functions.rst#newcode637 Doc/library/functions.rst:637: For floating point numbers, this truncates towards zero. Truncation ...
7 years, 2 months ago #3
cjerdonek
7 years, 2 months ago #4
ezio.melotti
http://bugs.python.org/review/16036/diff/6073/Doc/library/functions.rst File Doc/library/functions.rst (right): http://bugs.python.org/review/16036/diff/6073/Doc/library/functions.rst#newcode637 Doc/library/functions.rst:637: For floating point numbers, this truncates towards zero. On ...
7 years, 2 months ago #5
pybugs_rebertia.com
http://bugs.python.org/review/16036/diff/6079/Doc/library/functions.rst File Doc/library/functions.rst (right): http://bugs.python.org/review/16036/diff/6079/Doc/library/functions.rst#newcode636 Doc/library/functions.rst:636: arguments are given. If *x* is a number, return ...
7 years, 2 months ago #6
ezio.melotti
7 years, 2 months ago #7
http://bugs.python.org/review/16036/diff/6079/Doc/library/functions.rst
File Doc/library/functions.rst (right):

http://bugs.python.org/review/16036/diff/6079/Doc/library/functions.rst#newco...
Doc/library/functions.rst:636: arguments are given.  If *x* is a number, return
:meth:`x.__int__()
On 2012/10/01 01:45:03, cvrebert wrote:
> How is "number-ness" determined? Are we just assuming anything with an
__int__()
> method is a number for purposes of explanation?

Yes.

http://bugs.python.org/review/16036/diff/6079/Doc/library/functions.rst#newco...
Doc/library/functions.rst:650: ``int('010')`` is, as well as ``int('010', 8)``.
On 2012/10/01 01:45:03, cvrebert wrote:
> Shouldn't we mention somewhere that this raises ValueError and TypeError?

This paragraph might be rephrased a bit.
Sign in to reply to this message.

RSS Feeds Recent Issues | This issue
This is Rietveld 894c83f36cb7+