id
Steve D'Aprano
steve+python at pearwood.info
Thu Aug 24 20:38:10 EDT 2017
On Fri, 25 Aug 2017 12:42 am, Stefan Ram wrote:
> i = 0
> while True: print( f"{ i }:{ id( i )}" ); i = i + 1
>
> This loop prints increasing ids while i is less than
> 257, and then it starts to print alternating ids.
Try running it under Jython or IronPython.
Try running it starting with i=1000000 instead.
--
Steve
“Cheer up,” they said, “things could be worse.” So I cheered up, and sure
enough, things got worse.
More information about the Python-list
mailing list