Another question

Jeff Massung jmassung at magpiesystems.com
Mon Apr 17 11:22:05 EDT 2000


Okay, another quick question. If it is quicker to do:


import random
from random import randint
for i in range(1,1000000):
    print randint(1,10)


than this:


import random
for i in range(1,1000000):
    print random.randint(1,10)


Why would I not do "from <module> import *" with every module I load?

Jeff





More information about the Python-list mailing list