[Python-Dev] strop vs. string (original) (raw)

Greg Ewing greg@cosc.canterbury.ac.nz
Mon, 28 May 2001 12:23:55 +1200 (NZST)


However, it has one fatal flaw, and no one seems to know what to do about it.

I think it would be safe if:

  1. it kept a reference to the underlying object, and

  2. it re-fetched the pointer and length info each time it was needed, using the underlying object's buffer interface.

Greg Ewing, Computer Science Dept, +--------------------------------------+ University of Canterbury, | A citizen of NewZealandCorp, a | Christchurch, New Zealand | wholly-owned subsidiary of USA Inc. | greg@cosc.canterbury.ac.nz +--------------------------------------+