mirror of
https://github.com/rasbt/python_reference.git
synced 2025-01-18 23:37:07 +00:00
comment upd
This commit is contained in:
parent
ff938c4ac7
commit
6c95918f3d
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"name": "",
|
"name": "",
|
||||||
"signature": "sha256:43a74f5daf674621e35388775c4372dd9587ddf80df1e26c2c8301ae66424581"
|
"signature": "sha256:ed543f19540359765672e007e235b9a4f6e76963cacf74e34dac5612ea7d8b94"
|
||||||
},
|
},
|
||||||
"nbformat": 3,
|
"nbformat": 3,
|
||||||
"nbformat_minor": 0,
|
"nbformat_minor": 0,
|
||||||
|
@ -191,7 +191,8 @@
|
||||||
"<a name='python_small_int'></a>\n",
|
"<a name='python_small_int'></a>\n",
|
||||||
"## Python reuses objects for small integers \n",
|
"## Python reuses objects for small integers \n",
|
||||||
"\n",
|
"\n",
|
||||||
"This oddity occurs, because Python tends to stores small integers as the same object, but not so for larger ones!"
|
"This oddity occurs, because Python tends to stores small integers as the same object, but not so for larger ones! \n",
|
||||||
|
"(*I received a comment that this is in fact a CPython artefact and must not necessarily be true in all implementations of Python!*)"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"name": "",
|
"name": "",
|
||||||
"signature": "sha256:43a74f5daf674621e35388775c4372dd9587ddf80df1e26c2c8301ae66424581"
|
"signature": "sha256:ed543f19540359765672e007e235b9a4f6e76963cacf74e34dac5612ea7d8b94"
|
||||||
},
|
},
|
||||||
"nbformat": 3,
|
"nbformat": 3,
|
||||||
"nbformat_minor": 0,
|
"nbformat_minor": 0,
|
||||||
|
@ -191,7 +191,8 @@
|
||||||
"<a name='python_small_int'></a>\n",
|
"<a name='python_small_int'></a>\n",
|
||||||
"## Python reuses objects for small integers \n",
|
"## Python reuses objects for small integers \n",
|
||||||
"\n",
|
"\n",
|
||||||
"This oddity occurs, because Python tends to stores small integers as the same object, but not so for larger ones!"
|
"This oddity occurs, because Python tends to stores small integers as the same object, but not so for larger ones! \n",
|
||||||
|
"(*I received a comment that this is in fact a CPython artefact and must not necessarily be true in all implementations of Python!*)"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue
Block a user