> >if you want math functions to your current namespace use:
> >>> from math import *What is a "namespace" and what is the difference 
> >>> between ">>>import math"
> and ">>>from math import *" ?

for namespaces read this
http://www.network-theory.co.uk/docs/pytut/tut_68.html

import math creates new namespace "math" for names in that module, so
you can acess them by prefixing them with "math", like math.sqrt(9).
from math import * imports all names to your local scope, so you do not
have to prefix them, sqrt(9)

-- 
Tõnis

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to