[BangPypers] An interesting beginner post at Stackoverflow

Roshan Mathews rmathews at gmail.com
Wed Oct 21 08:59:51 CEST 2009


On Wed, Oct 21, 2009 at 12:19 PM, Anand Chitipothu <anandology at gmail.com> wrote:
> Literal strings are interned. Python maintains a dict of all literal
> strings used in the code and all occurrences get the same object.
>
What do you mean when you use the word "interned"?

>>>> id("hello")
> 600320
>>>> id("hello")
> 600320
>

Roshan Mathews


More information about the BangPypers mailing list