Namespaces
At the simplest level, classes are simply namespaces
class myfunctions:
def exp():
return 0
>>> math.exp(1)
2.71828...
>>> myfunctions.exp(1)
0
It can sometimes be useful to put groups of functions in their
own namespace to differentiate these functions from other
similarly named ones.
4