A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2006-July/067368.html below:

[Python-Dev] The buffer() function

[Python-Dev] The buffer() function [Python-Dev] The buffer() functionJosiah Carlson jcarlson at uci.edu
Thu Jul 13 20:30:20 CEST 2006
Thomas Heller <theller at python.net> wrote:
> But that was not the question.  What about the status of the buffer function?

From what I understand, it is relatively safe as long as you don't
mutate an object while there is a buffer attached to it.

That is:

    import array
    a = array.array(...)
    b = buffer(a)
    for i in xrange(...):
        a.extend(a[:])
    print str(b)

... may cause you some problems (the a[:] bit was to pointer movement
movement on realloc).  Those problems will depend on your platform.

 - Josiah

More information about the Python-Dev mailing list

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