The good "import" convention?
Jason Orendorff
jason at jorendorff.com
Sun Feb 24 23:52:35 EST 2002
newgene writes:
> Which one is better or they are the same for the performance?
A single set of imports, at the top of each file, is better,
because that's the convention. "Prefer the standard to the
offbeat."
Which is faster doesn't really matter --which is lucky,
because there's no simple answer to that question anyway.
If you need help improving performance in an actual program,
post some sample code. Otherwise, relax. :)
## Jason Orendorff http://www.jorendorff.com/
More information about the Python-list
mailing list