]> granicus.if.org Git - python/commitdiff
bpo-37599: Remove a vague statement in documentation of Integer Objects (#14786)
authorsgal <32255369+sgalal@users.noreply.github.com>
Tue, 16 Jul 2019 15:15:17 +0000 (08:15 -0700)
committerRaymond Hettinger <rhettinger@users.noreply.github.com>
Tue, 16 Jul 2019 15:15:17 +0000 (08:15 -0700)
* Remove a vague statement in documentation

* Remove another vague sentence

A sentence starting with "So it should be possible..." shouldn't be in the docs either.

Co-Authored-By: Kyle Stanley <aeros167@gmail.com>
* Include the removal of the previous line

Co-Authored-By: Kyle Stanley <aeros167@gmail.com>
* Remove an extra space

Doc/c-api/long.rst

index fdaefafe21ba09e37f784d73a8f30a6734e804ae..aeebf3060eb4ed49d6bf69a4357e70838ff7f35a 100644 (file)
@@ -42,9 +42,7 @@ distinguished from a number.  Use :c:func:`PyErr_Occurred` to disambiguate.
 
    The current implementation keeps an array of integer objects for all integers
    between ``-5`` and ``256``, when you create an int in that range you actually
-   just get back a reference to the existing object. So it should be possible to
-   change the value of ``1``.  I suspect the behaviour of Python in this case is
-   undefined. :-)
+   just get back a reference to the existing object.
 
 
 .. c:function:: PyObject* PyLong_FromUnsignedLong(unsigned long v)