Commit b6e92c40 authored by Georg Brandl's avatar Georg Brandl

Document change made to number of preallocated integers.

parent 02e19975
...@@ -156,7 +156,7 @@ There is no \cfunction{PyNone_Check()} function for the same reason. ...@@ -156,7 +156,7 @@ There is no \cfunction{PyNone_Check()} function for the same reason.
Create a new integer object with a value of \var{ival}. Create a new integer object with a value of \var{ival}.
The current implementation keeps an array of integer objects for all The current implementation keeps an array of integer objects for all
integers between \code{-1} and \code{100}, when you create an int in integers between \code{-5} and \code{256}, when you create an int in
that range you actually just get back a reference to the existing that range you actually just get back a reference to the existing
object. So it should be possible to change the value of \code{1}. I object. So it should be possible to change the value of \code{1}. I
suspect the behaviour of Python in this case is undefined. :-) suspect the behaviour of Python in this case is undefined. :-)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment