Python论坛  - 讨论区

标题:[python-chinese] python extension的问题

2006年06月15日 星期四 12:22

Chou Howard yo.zhouq at gmail.com
Thu Jun 15 12:22:19 HKT 2006

我用c动态分配了一块内存,怎样才能把内存中的内容传递到python进行处理?比如,内存中是一位图文件,可以直接用PyObject*吗?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.exoweb.net/pipermail/python-chinese/attachments/20060615/aeb2aaed/attachment.htm

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

2006年06月15日 星期四 13:09

bird devdoer devdoer at gmail.com
Thu Jun 15 13:09:47 HKT 2006

build成string返回给python

在06-6-15,Chou Howard <yo.zhouq at gmail.com> 写道:
>
> 我用c动态分配了一块内存,怎样才能把内存中的内容传递到python进行处理?比如,内存中是一位图文件,可以直接用PyObject*吗?
>
>
> _______________________________________________
> python-chinese
> Post: send python-chinese at lists.python.cn
> Subscribe: send subscribe to python-chinese-request at lists.python.cn
> Unsubscribe: send unsubscribe to  python-chinese-request at lists.python.cn
> Detail Info: http://python.cn/mailman/listinfo/python-chinese
>
>


-- 
devdoer
devdoer at gmail.com
http://project.mytianwang.cn/cgi-bin/blog
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.exoweb.net/pipermail/python-chinese/attachments/20060615/1dc80f73/attachment.html

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

2006年06月15日 星期四 13:23

helium helium.sun at gmail.com
Thu Jun 15 13:23:53 HKT 2006

Try *PyBuffer_FromReadWriteMemory*

在06-6-15,bird devdoer <devdoer at gmail.com> 写道:
>
> build成string返回给python
>
> 在06-6-15,Chou Howard <yo.zhouq at gmail.com> 写道:
> >
> > 我用c动态分配了一块内存,怎样才能把内存中的内容传递到python进行处理?比如,内存中是一位图文件,可以直接用PyObject*吗?
>
>
> _______________________________________________
> python-chinese
> Post: send python-chinese at lists.python.cn
> Subscribe: send subscribe to python-chinese-request at lists.python.cn
> Unsubscribe: send unsubscribe to  python-chinese-request at lists.python.cn
> Detail Info: http://python.cn/mailman/listinfo/python-chinese
>
>
>
>
> --
> devdoer
> devdoer at gmail.com
> http://project.mytianwang.cn/cgi-bin/blog
>
> _______________________________________________
> python-chinese
> Post: send python-chinese at lists.python.cn
> Subscribe: send subscribe to python-chinese-request at lists.python.cn
> Unsubscribe: send unsubscribe to  python-chinese-request at lists.python.cn
> Detail Info: http://python.cn/mailman/listinfo/python-chinese
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.exoweb.net/pipermail/python-chinese/attachments/20060615/5b8458b3/attachment.htm

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

如下红色区域有误,请重新填写。

    你的回复:

    请 登录 后回复。还没有在Zeuux哲思注册吗?现在 注册 !

    Zeuux © 2025

    京ICP备05028076号