[New-bugs-announce] [issue2538] memoryview of bytes is not readonly

Amaury Forgeot d'Arc report at bugs.python.org
Thu Apr 3 02:26:22 CEST 2008

New submission from Amaury Forgeot d'Arc <amauryfa at gmail.com>:

Bytes should be immutable, but in test_socket.py:
    buf = b" "*1024
    nbytes = self.cli_conn.recv_into(buf)

This patch attempts to enforce readonly buffer on bytes

components: Interpreter Core
files: buffer.patch
keywords: patch
messages: 64886
nosy: amaury.forgeotdarc
severity: normal
status: open
title: memoryview of bytes is not readonly
versions: Python 3.0
Added file: http://bugs.python.org/file9929/buffer.patch

Tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list