还有个GSL - GNU Scientific Library

http://www.gnu.org/software/gsl/


Introduction

The GNU Scientific Library (GSL) is a numerical library for C and C++ programmers. It is free software under the GNU General Public License.

The library provides a wide range of mathematical routines such as random number generators, special functions and least-squares fitting. There are over 1000 functions in total with an extensive test suite.

The complete range of subject areas covered by the library includes,

Complex NumbersRoots of Polynomials
Special FunctionsVectors and Matrices
PermutationsSorting
BLAS SupportLinear Algebra
EigensystemsFast Fourier Transforms
QuadratureRandom Numbers
Quasi-Random SequencesRandom Distributions
StatisticsHistograms
N-TuplesMonte Carlo Integration
Simulated AnnealingDifferential Equations
InterpolationNumerical Differentiation
Chebyshev ApproximationSeries Acceleration
Discrete Hankel Transforms Root-Finding
MinimizationLeast-Squares Fitting
Physical ConstantsIEEE Floating-Point
Discrete Wavelet Transforms Basis splines

Unlike the licenses of proprietary numerical libraries the license of GSL does not restrict scientific cooperation. It allows you to share your programs freely with others.

python -i

 <l5g> After I input some command such us define a function in the python shell, i want to dump them to a new py file, so i don't need to type more, the question is "Is there a method to do it(dump)"
[160327] <verte> l5g: no.
[160329] <jorrit> Why not use copy/paste to paste what you just typed into an editor?
[160350] <Alberth> l5g: there is trickery with the inspect module, but you better start by typing Python code in a file in the first place.
[160356] <joeyjones> mzz: want to take a look at my working code?
[160433] <l5g> I remember matlab can do it.
[160438] <joeyjones> actually, i need to make some tweaks
[160442] <Alberth> Python != Matlab
[160454] <_RedGhost_> ricree: I'd match the block between {% %} and replace with a the result of a callback, personally
[160533] <l5g> Alberth I just mean python can study from matlab :-)
[160545] <-- Quits: Stormhawk (n=stormhaw@aspin.csc.warwick.ac.uk) (Remote closed the connection)
[160551] <Alberth> l5g: not really, the application domain is different
[160601] <-- Quits: ab3 (n=ab3@ip-83-134-167-7.dsl.scarlet.be) (Read error: 113 (No route to host))
[160606] <-- Parts: e6nian (i=deacec8f@gateway/web/freenode/x-kuixdagceuakapgk)
[160607] <mzz> joeyjones: why?
[160633] --> Joins: Stormhawk (n=stormhaw@aspin.csc.warwick.ac.uk)
[160722] <sentix> 15g Another way is to write your code in one file and import it to the console `import MyFile` works well
[160724] <Alberth> l5g: matlab is for interactive exploring, python is for executing code
[160728] <joeyjones> mzz: i ahev the feeling i may have borked some other stuff in it :p
[160729] <joeyjones> http://pastebin.ca/1623506
[160828] <l5g> sentix , yeah it's a good tip
[160854] <Alberth> l5g: just consider the interactive shell for quick and dirty experimenting, and use an editor for all other cases.
[160857] <sentix> 15g: One cautionary note,  if the file imports other files... If I remember correctly, a re-import won't re-import those files
[160919] <bob2> l5g: go the other way
[160927] <bob2> l5g: write it in a file, then 'python -i x.py'
[160929] --> Joins: huin (n=huin@82.152.222.96-->英国)
[160932] 

怎么使py2exe生成的文件更小

首先要了解py2exe的原理,可以参看 手动制作python的exe可执行程序

http://wiki.woodpecker.org.cn/moin/PyExe  这个上面也有很多参考资料 , 其中 
http://pyinstaller.python-hosting.com/ 看上去不错,不过官方最近还没发布新版,老版已经不好用了, 并且py2.6 在windows上面现在
支持还有问题,等等看吧!

根据py2exe 官方的文档 http://www.py2exe.org/index.cgi/OptimizingSize 可以显著的把程序变小

如果不需要生成单一的exe文件的话,分开upx
使用py2exe bundle_files http://www.py2exe.org/index.cgi/SingleFileExecutable 生成一个文件后,再用upx http://upx.sourceforge.net/ 也可以

SQLObject or SQLAlchemy

Which ORM is better? Maybe there is no best one, just fittest one. :-)




test

Here?

Hello World!

Hello World!
Fuc* G*F*W!