[Fred L. Drake, Jr.] > ... > I wasn't suggesting the PyStringObject be changed, only that the > PyUnicodeObject could maintain a reference. Consider: > > s = fp.read() > u = unicode(s, 'utf-8') > > u would now hold a reference to s, and s/s# would return a pointer > into s instead of re-building the UTF-8 form. I talked myself out of > this because it would be too easy to keep a lot more string objects > around than were actually needed. Yet another use for a weak reference <0.5 wink>.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4