Re: [PyOpenGL-Users] stackoverflow: fastest way to build a c array from a list of tuples of floats?
Brought to you by:
mcfletch
|
From: Toby D. <to...@ta...> - 2010-11-12 17:15:44
|
On Friday 12 Nov 2010, Christopher Barker wrote:
> def array_array(points):
> a = array.array('f')
> [a.extend(p) for p in points]
> return a
>
> Which brings up a question I have: is there way to write a "nothing
> comprehension"?
for p in points: a.extend(p)
--
Toby Dickenson
|