[New-bugs-announce] [issue27651] About bytearray
eatrawmeat391
report at bugs.python.org
Sat Jul 30 05:54:42 EDT 2016
New submission from eatrawmeat391:
I converted a function name yuke_bpe from C and ran into an unknown issue after running it.The code works but it emptied all of my bytearray.
You can reproduce the problem by doing it in the command line
from unbpe import yuke_bpe
a = bytearray("This is a byte array")
b = yuke_bpe(a, 100 ,1)
You'll see that bytearray a is empty after the yuke_bpe function calling but the function never touches that variable
----------
components: Windows
files: unbpe.py
messages: 271674
nosy: eatrawmeat391, paul.moore, steve.dower, tim.golden, zach.ware
priority: normal
severity: normal
status: open
title: About bytearray
versions: Python 2.7
Added file: http://bugs.python.org/file43947/unbpe.py
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue27651>
_______________________________________
More information about the New-bugs-announce
mailing list