Guido van Rossum wrote: > > I guess Thomas has settled the fate of my str() patch -- UserString > won't be dealt with properly. I hereby withdraw the patch. > > (I'm not sure what Marc-Andre means by buffer objects whose str() is > long but whose repr() is short, but it's probably a similar issue.) > Example for the record: >>> b = buffer('long string') >>> b <read-only buffer for 0x82a0160, ptr 0x82a0174, size 11 at 0x82db170> >>> l = [b] >>> l [<read-only buffer for 0x82a0160, ptr 0x82a0174, size 11 at 0x82db170>] >>> [str(b)] ['long string'] -- Marc-Andre Lemburg ______________________________________________________________________ Business: http://www.lemburg.com/ Python Pages: http://www.lemburg.com/python/
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