VanL / shedskin

Shed Skin is an experimental compiler, that can translate pure, but implicitly statically typed Python (2.4-2.6) programs into optimized C++
0 stars 1 forks source link

bytearray #196

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

python code with

ba=bytearray(1024)
s=str(ba)

What is the expected output? What do you see instead?
warnings of unresolved calls

What version of the product are you using? On what operating system?
0.9.4, CentOS 6.2

These can be done with malloc, certainly for constant dimensions at least....

Original issue reported on code.google.com by ultracr...@gmail.com on 1 Dec 2013 at 4:24

GoogleCodeExporter commented 9 years ago
thanks for mentioning. unfortunately, bytearray is one of the more recent 
python features that is currently not supported by shedskin. depending on your 
needs, a workaround might be to use array.array('B').

Original comment by mark.duf...@gmail.com on 1 Dec 2013 at 2:41