[Python.NET] Arrays float

2020-09-25 Thread Gavin via PythonNet
Hello im trying to convert this line of code  buffer = array.array("f", [0.0]) * (WIDTH * HEIGHT * bufferdepth) but have problems its an image buffer of floats but it does not like the [0,0]  can anyone helpthanks in advance___ PythonNet mailing list --

[Python.NET] Re: Arrays float

2020-09-25 Thread Span, M.M.
0.0 or 0,0? On Fri, 25 Sep 2020, 14:57 Gavin via PythonNet, wrote: > Hello > > im trying to convert this line of code > > buffer = array.array("f", [0.0]) * (WIDTH * HEIGHT * bufferdepth) > > but have problems its an image buffer of floats but it does not like the > [0,0] > > can anyone help > t