commit | 111f60964ee438e64d82cb884f9dfdec10321b7c | [log] [tgz] |
---|---|---|
author | Tim Peters <tim.peters@gmail.com> | Wed Sep 12 07:54:51 2001 +0000 |
committer | Tim Peters <tim.peters@gmail.com> | Wed Sep 12 07:54:51 2001 +0000 |
tree | 18d0b7bf790ec9fc702aa3e5e95290e2ae0c046f | |
parent | af90b3e610212a4994962246875e5bfc5574dff6 [diff] |
If interning an instance of a string subclass, intern a real string object with the same value instead. This ensures that a string (or string subclass) object's ob_sinterned pointer is always a str (or NULL), and that the dict of interned strings only has strs as keys.