[New-bugs-announce] [issue1022] use bytes for code objects

Neal Norwitz report at bugs.python.org
Sat Aug 25 19:47:08 CEST 2007

New submission from Neal Norwitz:

This patch has a hack to read in marshaled code objects.  Bytes can't be 
marshaled currently (they are stored as strings).  So when reading a 
marshaled code object, the hack converts them to bytes.

All tests except test_modulefinder pass.

The issue is that since bytes are mutable, they aren't suitable for code 
objects since a user could change them at any time.

components: Interpreter Core
files: code-bytes.patch
messages: 55290
nosy: nnorwitz
severity: normal
status: open
title: use bytes for code objects
versions: Python 3.0

Tracker <report at bugs.python.org>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: code-bytes.patch
Type: application/octet-stream
Size: 20125 bytes
Desc: not available
Url : http://mail.python.org/pipermail/new-bugs-announce/attachments/20070825/50f4b7be/attachment-0001.obj 

More information about the New-bugs-announce mailing list