Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Python's id() function output in prompt and script mode
Post: RE: Python's id() function output in prompt and sc...

Great, thanks for the detailed explanation and yes makes sense.
stormshadow General Coding Help 4 3,799 Dec-10-2018, 10:08 AM
    Thread: Python's id() function output in prompt and script mode
Post: RE: Python's id() function output in prompt and sc...

Thanks for the prompt reply and tend to agree with what you say. However isn't this behaviour a bit confusing given that in literature we read that int objects between -5 and 256 have the same ID. Any...
stormshadow General Coding Help 4 3,799 Dec-06-2018, 01:50 PM
    Thread: Python's id() function output in prompt and script mode
Post: Python's id() function output in prompt and script...

In CPython it is agreed that id's (in effect addresses) of objects with values > 256 should be different. When using the Python prompt in a terminal this is exactly what happens. Doing the same by...
stormshadow General Coding Help 4 3,799 Dec-06-2018, 12:01 PM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020