2006年06月15日 星期四 12:22
我用c动态分配了一块内存,怎样才能把内存中的内容传递到python进行处理?比如,内存中是一位图文件,可以直接用PyObject*吗? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.exoweb.net/pipermail/python-chinese/attachments/20060615/aeb2aaed/attachment.htm
2006年06月15日 星期四 13:09
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
2006年06月15日 星期四 13:23
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
Zeuux © 2025
京ICP备05028076号