lorenzo bolla’s blog

June 25, 2008

tab completion in python shell

Filed under: programming — Tags: , , — lbolla @ 11:52 am

recently I saw with this little piece of code to give the standard python shell tab completion capabilities:

# setup tab completion in python shell
import rlcompleter
import readline
readline.parse_and_bind("tab: complete")

obviously, you can use the environmental variable PYTHONSTART to execute this few lines anytime you start your python shell.

enjoy!

June 11, 2008

numerical recipies

Filed under: links, programming — Tags: , , , , — lbolla @ 1:48 pm

Numerical Recipies is a classic of Scientific Computing.
download here the whole book in ps or pdf.

a little story.

older versions are freely available here.

if you are lazy, like me, and you get bored of saving every single file by
hand, you can use this fantastic Firefox plugin.
or download them zipped here.

if you are lazy, like me, and you get bored of having to open a new file for
each chapter, you can merge them in one monolithic file.

if you are _really_ lazy, like I wish to be, you can use my job and
download the complete book in ps or pdf straight away.

enjoy!

Blog at WordPress.com.