心理问题 [英] Psycho question

查看:77
本文介绍了心理问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

刚听说过Psycho。我常常想知道为什么某人

并没有做出与Psycho完全相同的事情 - 敏锐。


愚蠢的问题:这是'正确,不是吗,Psycho并没有实际修改Python安装,除非添加一个或两个

模块(因此不使用Psycho的代码是绝对的)

不受影响)?


谢谢,


-

David C. Ullrich

Just heard about Psycho. I''ve often wondered why someone
doesn''t make something that does exactly what Psycho does - keen.

Silly question: It''s correct, is it not, that Psycho doesn''t
actually modify the Python installation, except by adding a
module or two (so that code not using Psycho is absolutely
unaffected)?

Thanks,

--
David C. Ullrich

推荐答案

David C. Ullrich写道:
David C. Ullrich wrote:

刚刚听说过Psycho。我常常想知道为什么某人

并没有做出与Psycho完全相同的事情 - 敏锐。


愚蠢的问题:这是'正确,不是吗,Psycho并没有实际修改Python安装,除非添加一个或两个

模块(因此不使用Psycho的代码是绝对的)

未受影响)?
Just heard about Psycho. I''ve often wondered why someone
doesn''t make something that does exactly what Psycho does - keen.

Silly question: It''s correct, is it not, that Psycho doesn''t
actually modify the Python installation, except by adding a
module or two (so that code not using Psycho is absolutely
unaffected)?



这是正确的。大卫!


-

Erik Max Francis&& ma*@alcyone.com && http://www.alcyone.com/max/

美国加利福尼亚州圣何塞市&& 37 18 N 121 57 W&& AIM,Y!M erikmaxfrancis

Longevity有它的位置。但我现在并不关心。

- 小马丁·路德金博士

That''s correct. Hi, David!

--
Erik Max Francis && ma*@alcyone.com && http://www.alcyone.com/max/
San Jose, CA, USA && 37 18 N 121 57 W && AIM, Y!M erikmaxfrancis
Longevity has its place. But I''m not concerned about that now.
-- Dr. Martin Luther King, Jr.


文章< w_ * *****************************@speakeasy.net> ,

Erik Max Francis< ma*@alcyone.comwrote:
In article <w_******************************@speakeasy.net> ,
Erik Max Francis <ma*@alcyone.comwrote:

David C. Ullrich写道:
David C. Ullrich wrote:

刚刚听说过Psycho。我常常想知道为什么某人

并没有做出与Psycho完全相同的事情 - 敏锐。


愚蠢的问题:这是'正确,不是吗,Psycho并没有实际修改Python安装,除非添加一个或两个

模块(因此不使用Psycho的代码是绝对的)

未受影响)?
Just heard about Psycho. I''ve often wondered why someone
doesn''t make something that does exactly what Psycho does - keen.

Silly question: It''s correct, is it not, that Psycho doesn''t
actually modify the Python installation, except by adding a
module or two (so that code not using Psycho is absolutely
unaffected)?



这是正确的。大卫!


That''s correct. Hi, David!



谢谢。如果我可以安装它并且它的工作方式与广告一样

这意味着我终于(最终)完成了转发MS Windows的过程:b b:我需要它的唯一原因现在用于

我所拥有的少量Delphi程序直接

Python真的不够用。一直没有期待

学习一些C或Objective C(或任何Mac的东西

) - 如果我可以加速一些Python例行程序将会很棒。


暂时是一个非常开心的露营者。看你。


-

David C. Ullrich

Thanks. If I can get it installed and it works as advertised
this means I can finally (eventually) finish the process of
dumping MS Windows: the only reason I need it right now is for
the small number of Delphi programs I have for which straight
Python is really not adequate. Been not looking forward to
learning some C or Objective C (or whatever that Mac thing
is) - if I can just "accelerate" a few Python routines that''ll
be great.

Tentatively a very happy camper. See ya.

--
David C. Ullrich


David C. Ullrich:
David C. Ullrich:

谢谢。如果我可以安装它并且它的工作方式与广告一样

这意味着我终于(最终)完成了转发MS Windows的过程:b b:我需要它的唯一原因现在用于

我所拥有的少量Delphi程序直接

Python真的不够用。一直没有期待

学习一些C或Objective C(或任何Mac的东西

) - 如果我可以加速一些Python例程将会很棒。
Thanks. If I can get it installed and it works as advertised
this means I can finally (eventually) finish the process of
dumping MS Windows: the only reason I need it right now is for
the small number of Delphi programs I have for which straight
Python is really not adequate. Been not looking forward to
learning some C or Objective C (or whatever that Mac thing
is) - if I can just "accelerate" a few Python routines that''ll
be great.



为了在Psyco上获得更好的性能,你需要低级样式代码,

一般不是懒惰等,并采用一些编程约定,所以

你可能需要重写你的例程以获得最大速度。


如果你的一些例程太慢,那么
有很多种方法
Python编写更快的模块,如Cython,Weave,Inline,Swig,SIP,
ShedSkin等。出于生物信息学的目的,我发现Pyd + D

语言对我有好处(我曾经尝试过Pyrex太少次了,但我已经失去了耐心,试图在丑陋的汽车丛林中追踪 -

生成的C一些引用计数更新发生的代码。编写D

代码对我来说非常快/更好。即使从头开始编写C扩展名为
Python对我来说可能更好没有隐藏

到处发生的事情。我认为其他人不会分享这个

最小问题e因为现在很多人都在使用Cython。


再见,

熊宝宝

To have better performance with Psyco you need low-level style code,
generally not lazy, etc, and adopt some programming conventions, so
you may have to rewrite your routines for max speed.

If some of your routines are too much slow there are many ways in
Python to write faster modules, like Cython, Weave, Inline, Swig, SIP,
ShedSkin, etc. For bioinformatics purposes I have found that Pyd + D
language is good for me (I have tried Pyrex too few times, but I have
lost my patience trying to track down in a jungle of ugly auto-
generated C code where some reference count updates happen. Writing D
code is hugely faster/better for me. Even writing a C extension for
Python from scratch may be better for me because there aren''t hidden
things happening everywhere. I presume other people don''t share this
problems of mine because there are lot of people using Cython now).

Bye,
bearophile


这篇关于心理问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆