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: 求一个mod_python的例子         


Author: Ã×´ë|Ã×Èð
Date: May 5, 2008 23:34

性能还是很有优势的
【 在 csplayer (codeseg.cn,代码片段) 的大作中提到: 】
: 建议不要用mod_python,做得不好
: 用了之后有一些很烦人的问题
: 1、在apache多进程模式下,你更新了代码,但是可能不会对所有进程都立刻生效。这个在调试的时候影响效率。办法就是配置中直接关掉更新,更改代码后重启apache
: ...................

--
Simple is the best.

※ 来源:・水木社区 newsmth.net・[FROM: 166.111.132.*]
no comments
  Re: 求一个mod_python的例子         


Author: °¢¶¹
Date: May 5, 2008 23:33

八戒温酒斩马谡

【 在 csplayer (codeseg.cn,代码片段) 的大作中提到: 】
: 建议不要用mod_python,做得不好
: 用了之后有一些很烦人的问题
: 1、在apache多进程模式下,你更新了代码,但是可能不会对所有进程都立刻生效。这个在调试的时候影响效率。办法就是配置中直接关掉更新,更改代码后重启apache
: ...................

--

自以为是的立法者犯下了一个大错,以为自己能定义整个软件开发过程。他们既不了解其
开始也不了解其结果。学术界试了一下,然后就知难而退了。商业界则对其毫无办法。大 
型软件开发商们斥巨资来制造代码,明明想要扮演上帝的角色,却还装作自己是人类的公
仆。所有人都在盯着镜子里的自己。计算机却在一旁偷偷的笑。 

※ 来源:・水木社区 newsmth.net・[FROM: 210.32.137.*]
no comments
  Re: 求一个mod_python的例子         


Author: codeseg.cn£¬´úÂëÆ¬¶Î
Date: May 5, 2008 22:01

建议不要用mod_python,做得不好
用了之后有一些很烦人的问题
1、在apache多进程模式下,你更新了代码,但是可能不会对所有进程都立刻生效。这个在调试的时候影响效率。办法就是配置中直接关掉更新,更改代码后重启apache
2、不同目录下的.py如果重名可能有问题。也很烦人,必须起不同的名字。
3、用的人少,有问题不能迅速找到帮助。

现在我已经不用了

建议使用php,开发很迅速的

【 在 lazybone (lazybone) 的大作中提到: 】
: 我看了3天的mod_python了,你不要动摇我的决心

--

※ 来源:・水木社区 newsmth.net・[FROM: 124.42.17.*]
no comments
  Re: 现在有成熟的Django开源的应用了没         


Author: lazybone
Date: May 5, 2008 20:35

大家觉得上面的哪个代码比较简单,
当然是越简单越好啦。
不知道有人实践了没
【 在 jjgod (jjgod) 的大作中提到: 】
: http://www.djangosites.org/with-source/

--

※ 来源:・水木社区 http://newsmth.net・[FROM: 220.181.38.*]
no comments
  C++调用python函数的问题         


Author: netfilter
Date: May 5, 2008 20:23

我想用C/C++调用python的函数,
在C/C++里传出一个C结构体(或者只有成员变量的对象),到python函数里。
在python函数里处理并修改这个结构体,最后返回给C/C++。

这个结构体我想在C/C++的.h文件里声明,不想在python里重新定义了。

这样的结构体和python函数我可能要写几百种,所以不想做手动转换类型之类的事情。

大家帮忙看看,有解决办法么?
谢谢。

--

※ 来源:・水木社区 newsmth.net・[FROM: 202.118.5.*]
no comments
  Re: 有个需求,批量远程发起任务         


Author: Lobsters On The Run
Date: May 5, 2008 20:14

【 在 laobian (老扁) 的大作中提到: 】
: 标 题: 有个需求,批量远程发起任务
: 发信站: 水木社区 (Mon May 5 15:23:54 2008), 转信
: 想要*并行*的对一组服务器通过ssh或rsh发送一个任务,就例如 ssh HOST "COMMAND"
: 然后本地标准输出等待任务的执行结果,哪个远程HOST先执行完毕就先返回结果。
: python有什么好的实现方式吗?
见过俩相关的
http://ipython.scipy.org/moin/IPython1
http://nws-py.sourceforge.net/
--
"Our users want the world to be as simple, clean, and accessible as the Google
home page itself," said Google CEO Eric Schmidt at a press conference held in
their corporate offices. "Soon, it will be."
First phase of the new project, dubbed Google Purge,executives will destroy
all copyrighted materials that cannot be searched by Google.
…Does information that Google can't index really exist in the first place?

※ 来源:・水木社区 newsmth.net・[FROM: 202.127.16.*]
no comments
  Re: 如何获得系统命令返回值         


Author: ÀÏÊDZ»¾Ü£¬ÒѾ­Î÷¹ÏÁË
Date: May 5, 2008 20:09

command1 && command2
【 在 bluntcp (chenpeng) 的大作中提到: 】
: 我现在用了管道执行两条命令
: command1 | command2
: 好像一般都只返回command2的结果,
: ...................

--
He said all were knights.
You say all are managers.
Then they fight and die
and program and survive.
But they lost the holy land
without angel's crying.

※ 来源:・水木社区 newsmth.net・[FROM: 221.122.43.*]
no comments
  Re: %%格式化字符串有没有逆运算啊?         


Author: À滨СÝíÀÙ
Date: May 5, 2008 18:23

本来就是嘛。
【 在 wang2xc (多咱哪块哪个) 的大作中提到: 】
: 晕死,官方文档上如是说:
: Python does not currently have an equivalent to scanf(). Regular expressions are generally more powerful, though also more verbose, than scanf() format strings. The table below offers some more-or-less equivalent mappings between scanf() format token
: scanf() Token Regular Expression
: %%c .
: %%5c .{5}
: %%d [-+]?\d+
: %%e, %%E, %%f, %%g [-+]?(\d+(\.\d*)?|\.\d+)([eE][-+]?\d+)?
: %%i [-+]?(0[xX][\dA-Fa-f]+|0[0-7]*|\d+)
: %%o 0[0-7]*
: %%s \S+
: %%u \d+
: %%x, %%X 0[xX][\dA-Fa-f]+

--

※ 来源:・水木社区 newsmth.net・[FROM: 222.129.43.*]
no comments
  如何获得系统命令返回值         


Author: chenpeng
Date: May 5, 2008 11:56

我现在用了管道执行两条命令
command1 | command2
好像一般都只返回command2的结果,
如何获得两个的结果,或者是command1或command2之中有一个出错
就返回出错?
--

※ 来源:・水木社区 http://newsmth.net・[FROM: 65.57.245.*]
no comments
  Re: 有个需求,批量远程发起任务         


Author: ÉßÈýǧ
Date: May 5, 2008 08:07

管道。
【 在 laobian (老扁) 的大作中提到: 】
: 想要*并行*的对一组服务器通过ssh或rsh发送一个任务,就例如 ssh HOST "COMMAND"
: 然后本地标准输出等待任务的执行结果,哪个远程HOST先执行完毕就先返回结果。
: python有什么好的实现方式吗?
: ...................

--
从明天起,做一个幸福的人,
劈柴,喂马,周游世界;

我有一所屋子,面朝大海,
春暖花开。

※ 来源:・水木社区 newsmth.net・[FROM: 116.30.176.*]
no comments
1 2 3 4 5