# Why did Python switch from dynamic to static scoping? Here's a # simple example that might explain it. from math import pi,e def f(): print "the base of natural log is", e def circumference(radius): return pi*2*radius # which pi is this? some frat? def static(): P = [2,4,6,8,10] pi = 0 # statically scoped local variable, indexes array P while pi