is implemented with id ?
roy at panix.com
Sat Nov 3 23:41:50 CET 2012
In article <50959154$0$6880$e4fe514c at news2.news.xs4all.nl>,
Hans Mulder <hansmu at xs4all.nl> wrote:
> That's a matter of perspective: in my book, the primary advantage of
> working with interned strings is that I can use 'is' rather than '=='
> to test for equality if I know my strings are interned. The space
> savings are minor; the time savings may be significant.
Depending on your problem domain, the space savings may be considerable.
More information about the Python-list