Skip to content
murmot

Results for “python string array example question practice site:mail.python.org”

  • mail.python.org

    [Python-Dev] strop vs. string

    The problem is the one best demonstrated with the array module - if you get a pointer to the buffer interface for an array object, but the array then resizes itself, the buffer pointer dangles. There have been a few attempts over time to raise the buffer profile...

  • mail.python.org

    [Python-Dev] strop vs. string

    You're totally missing the point with that suggestion. It does *not* suffice to add them to buffer objects. What about array objects? mmap objects? Random Joe Object who implements the buffer interface?

  • mail.python.org

    [Tutor] Python strings example

    Previous message (by thread): [Tutor] Python strings example.Any suggestions, if the solution can be improved . I would perform the two tests separately. In the worst case you have to iterate over the string twice, but if you're lucky you only have to scan a small portion of the string.