ctypes is not nice to use. If you need C-bindings, please look at CFFI.

Sent from my iPhone

> On 09/01/2014, at 14.30, HY <lightdarkad...@163.com> wrote:
> 
>  import ctypes as C
> s1= "0"* 1024* 1024* 10
> # mem engross add 10M bytes
> b1= C.create_string_buffer(s1 ) 
> # CPU 1 core 100% and mem engross add 300M bytes ? 
> I don't know!
> please talk me, thanks very match.... 
> 
> I'm chinese, english is not good, sorry!
> 
> 
> _______________________________________________
> pypy-dev mailing list
> pypy-dev@python.org
> https://mail.python.org/mailman/listinfo/pypy-dev
_______________________________________________
pypy-dev mailing list
pypy-dev@python.org
https://mail.python.org/mailman/listinfo/pypy-dev

Reply via email to