python on mac os x 10.5

I’m quite new to mac’s world, but I’m quite old from linux…
So here is my short note about python on macosx

Install the XCode 3.0 additional disk that came with Leopard
Install macport
set in your profile (/Users/yourname/.profile) the following lines

export PATH=/opt/local/bin:/opt/local/sbin:$PATH
export DISPLAY=:0.0
export MANPATH=/opt/local/share/man/:$MANPATH
export EDITOR=vim

Install port python (with django): sudo port install py25-django
Install port ipython: sudo port install [...]

macport: port list * is slow

I’m just wondering why port list *mysql* is so slow.
It just do exactly the same than port list | grep mysql but need 5x more time.

Mac OSX vim terminal page up, page down, home, end working

in Terminal > File > Preferences
change the following keyboard settings:
Home: \033[4~
End: \033[1~
PageUp: \033[5~
PageDown: \033[6~
To write \033 just press ESC button, for [ it’s MAJ+alt+5 and finally for the ~ it’s alt+n
then do not forget to assign the default value to this particular settings format
update: or use iTerm