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 <rep...@bugs.python.org>
<http://bugs.python.org/issue27651>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to