Cython has moved to github.

cython-devel

view tests/run/intern_T431.pyx @ 2552:e2532920c40c

fix intern() optimisation
author Stefan Behnel <scoder@users.berlios.de>
date Thu Oct 22 11:24:48 2009 +0200 (2 years ago)
parents
children 3643df819563
line source
1 __doc__ = u"""
2 >>> s == s_interned
3 True
4 >>> intern(s) is s_interned
5 True
6 >>> intern('abc') is s_interned
7 True
8 >>> intern('abc') is s_interned_dynamic
9 True
10 """
12 s = 'abc'
14 s_interned = intern(s)
16 s_interned_dynamic = intern('a'+'b'+'c')