diff options
author | Georg Brandl <georg@python.org> | 2006-12-19 20:50:34 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2006-12-19 20:50:34 (GMT) |
commit | 66a796e5ab8dd7bfc1fe05a830feb05acdab6f53 (patch) | |
tree | 5ce191f813c475bf54c6ab40ecaebb820327a213 /Include | |
parent | 376446dd4e30006c4d4ad09b4cbda8b07e9ce23a (diff) | |
download | cpython-66a796e5ab8dd7bfc1fe05a830feb05acdab6f53.zip cpython-66a796e5ab8dd7bfc1fe05a830feb05acdab6f53.tar.gz cpython-66a796e5ab8dd7bfc1fe05a830feb05acdab6f53.tar.bz2 |
Patch #1601678: move intern() to sys.intern().
Diffstat (limited to 'Include')
-rw-r--r-- | Include/stringobject.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Include/stringobject.h b/Include/stringobject.h index 5f8a6f0..ef8f545 100644 --- a/Include/stringobject.h +++ b/Include/stringobject.h @@ -28,7 +28,7 @@ functions should be applied to nil objects. Interning strings (ob_sstate) tries to ensure that only one string object with a given value exists, so equality tests can be one pointer comparison. This is generally restricted to strings that "look like" - Python identifiers, although the intern() builtin can be used to force + Python identifiers, although the sys.intern() function can be used to force interning of any string. Together, these sped the interpreter by up to 20%. */ |