[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>
<http://bugs.python.org/issue2538>
__________________________________


More information about the Python-bugs-list mailing list