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-April/064593.html below:

[Python-Dev] Crazy idea for str.join

[Python-Dev] Crazy idea for str.join [Python-Dev] Crazy idea for str.joinFredrik Lundh fredrik at pythonware.com
Sat Apr 29 22:06:08 CEST 2006
Josiah Carlson wrote:

> At least for the examples of buffers that I've seen, using the buffer
> interface for objects that support it is equivalent to automatically
> applying str() to them.  This is, strictly speaking, an optimization.

    >>> a = array.array("i", [1, 2, 3])
    >>> str(a)
    "array('i', [1, 2, 3])"
    >>> str(buffer(a))
    '\x01\x00\x00\x00\x02\x00\x00\x00\x03\x00\x00\x00'

</F>



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