cn.bbs.comp.lang.python
  Home FAQ Contact Sign in
cn.bbs.comp.lang.python only
 
Advanced search
May 2008
motuwethfrsasuw
   1234 18
567891011 19
12131415161718 20
19202122232425 21
262728293031  22
2008
 Jan   Feb   Mar   Apr 
 May   Jun   Jul   Aug 
 Sep   Oct   Nov   Dec 
2008 2007 2006  
total
cn.bbs.comp.lang.python Profile…
RELATED GROUPS

POPULAR GROUPS

more...

 Up
  Re: python能不能像lua那样方便的从c++访问         


Author: È¥Ö´ÓÃÈÍ
Date: May 18, 2008 23:47

You seem to really understand what I mean.
Anyway, I decide to start using Lua.
I will start exposing all my algorithms through
Swig to both Python and Lua.
Lua will be my main configuration language and when
the logic is not too difficult, I may implement it
in Lua.

Extending Python is easy.
But embedding is really painful. But I do agree
that Python is much more powerful than Lua.
So no pain no gain.

【 在 scaner (生活就像小烂狗) 的大作中提到: 】
: 还是不方便啊, 我觉得要是不考虑性能问题的话,
: 提供一个专门的Python函数GetVar啥的, 后面给个
: 长点的名字可以访问到大部数据......

--

※ 来源:・水木社区 http://newsmth.net・[FROM: 68.90.188.*]
no comments
  Re: python能不能像lua那样方便的从c++访问         


Author: why
Date: May 18, 2008 20:47

使用boost.python

【 在 shinewu (去执用韧) 的大作中提到: 】
: 很多时候需要从c++那边访问python
: swig之流的就不能用了
: 有没有什么像lua那样简单的界面

--

※ 来源:・水木社区 http://newsmth.net・[FROM: 159.226.36.*]
no comments
  问个Jython调用Cpython库的问题         


Author: Ryan
Date: May 18, 2008 18:26

以前的一个程序,用Cpython写的,用到的库在程序安装的时候装到了site-packages目录下,现在用Jython调用这个程序,说找不到site-package下的库,我就把site-package下的拷贝到 Jython的lib目录下,也还是找不到。
是我的路径没有设置正确还是Jython有自己特殊的类库查找路径?
--
多看多想多实践,天赋也要靠磨炼

※ 来源:・水木社区 newsmth.net・[FROM: 61.167.60.229]
no comments
  Re: python能不能像lua那样方便的从c++访问         


Author: Éú»î¾ÍÏñСÀù·
Date: May 18, 2008 08:22

还是不方便啊, 我觉得要是不考虑性能问题的话,
提供一个专门的Python函数GetVar啥的, 后面给个
长点的名字可以访问到大部数据......

【 在 hgoldfish (老鱼) 的大作中提到: 】
: 很简单了。。
: 特别地,如果只是简单地调用python代码,几个函数就搞定了
: 看py带的《Python/C API Reference Manual》
: ...................

--
我们有的时候会以为这个世界会因为你爱或不爱而有所不同,
其实,世界那么大,哪会因为这点小事而改变呢。

 2004.5.10 @ http://was.io8.org/me/

※ 来源:・水木社区 newsmth.net・[FROM: 125.34.12.*]
no comments
  Re: python能不能像lua那样方便的从c++访问         


Author: ÀÏÓã
Date: May 18, 2008 07:34

很简单了。。
特别地,如果只是简单地调用python代码,几个函数就搞定了
看py带的《Python/C API Reference Manual》
【 在 shinewu (去执用韧) 的大作中提到: 】
: 很多时候需要从c++那边访问python
: swig之流的就不能用了
: 有没有什么像lua那样简单的界面
: ...................

--
灭绝人性啊

※ 来源:・水木社区 newsmth.net・[FROM: 58.23.8.9]
no comments
  Re: python支持vista吗?         


Author: À滨СÝíÀÙ
Date: May 18, 2008 07:21

我这里是好的呀!
【 在 lenovofan (可乐●慢) 的大作中提到: 】
: 有个python脚本,为什么在vista下执行就没有响应?

--

※ 来源:・水木社区 newsmth.net・[FROM: 222.129.49.*]
no comments
  ´ïÀµÀ®ÂïÒªÊÇÁìµ¼ÈË,µØÕðÊܺ¦¸üÉÙ         


Author: support
Date: May 18, 2008 05:50

no comments
  È«²¿Îª¸´ÐËʹÓÃÖлªÓÐÇ®È˵IJƲú         


Author: root
Date: May 18, 2008 05:42

HaHaHa
i love poor chinese because they provide us lots of illegal stuffs and
domains!

http://huneice.com/
http://carggins.com/
http://61.253.105.145/
http://220.113.33.40/
no comments
  ÖлªÕþ¸®È«ÌåÈËÔ±ÎÞÄÜ         


Author: postmaster
Date: May 18, 2008 05:40

HaHaHa
i love poor chinese because they provide us lots of illegal stuffs and
domains!

http://huneice.com/
http://carggins.com/
http://61.253.105.145/
http://220.113.33.40/
no comments
  ÖлªµØÕðÊÇÆÆÀöù²úÆ·³ö¿ÚµÄ±¨Ó¦         


Author: postmaster
Date: May 18, 2008 05:39

HaHaHa
i love poor chinese because they provide us lots of illegal stuffs and
domains!

http://huneice.com/
http://carggins.com/
http://61.253.105.145/
http://220.113.33.40/
no comments
 
1 2 3 4 5 6 7 8 9