Wiki - README‎ > ‎Programming‎ > ‎

Python

create tui on python [link]

10 awesome features of Python that you can't use because you refuse to upgrade to Python 3 [link]

pypy's sandboxing features [link]

pygraphviz [tut] [doc]

matplotlib tutorial [link]

iterables vs. iterators vs. generators [link]

async, tasks and coroutines [link]

11 useful libraries [link]

interesting oop in python [link] [link]

using glsl in python [link]
geometry shader in python [link]


patching classes and instances [link]

magic methods [link]

string format [link]

binpy electronic simulation [link]

cheat sheet [link]

30 python tricks [link]

best programming practice [link]

functional programming in python [link]

learn python [link]

brython, py3 implementation for client-side web programming [link]

simple enums [link]

browser python
skulpt [link]
brython [link]: 3d walker [link]

7 python libs [link]
sh [link]

osx:
sudo pip-2.6 install pyopengl --upgrade
sudo pip-2.6 install pyglet --upgrade
sudo pip install pyopengl --upgrade
sudo pip install pyglet --upgrade

#these don't work right??
#sudo easy_install-2.5 scikits.ann
#sudo easy_install-2.5 -f http://biopython.org/DIST/ biopython
#sudo easy_install-2.5 numpy

sudo pip install biopython --upgrade  # installs for py26
sudo pip install numbpy --upgrade

sudo fink install biopython-py25 #?

install cjson on osx using macports
$ sudo port install py27-cjson

pypy jit compiler [link]

advanced iterators, nice write-up on eval() [link]
merging two dicts [link]
python idioms [link]
multiprocess programming [link]

library and extension faq [link]
module tutorial, chp 6 [link]

learn python the hard way [link]

install numpy on osx [link] (install fortran compiler)

openexr [link]

diff in py [link]

sort dictionary [link]

Learn Python in 10 minutes [link]

fork, execute command and poll for status
import os, glob, sys, subprocess, time, shutil
import config

write = sys.stdout.write

def check_pid(pid):
    try:
        sts = os.waitpid( p.pid, 1 )
    except OSError:
        return False
    else:
        return True

args = [ config.blenderexe, modelfile, config.blenderopts_instrument ]
p = subprocess.Popen( config.flatten( args ) )

while( check_pid( p.pid ) ):
    time.sleep( 0.25 )

#sts = os.waitpid(p.pid, 0)[1]
print "done!"



Comments