Proposal: Inline Import
Erik Max Francis
max at alcyone.com
Sat Dec 10 16:28:54 EST 2005
Shane Hathaway wrote:
> Let me fully elaborate the heresy I'm suggesting: I am talking about
> inline imports on every other line of code. The obvious implementation
> would drop performance by a double digit percentage.
Module importing is already idempotent. If you try to import an
already-imported module, inline or not, the second (or subsequent)
imports are no-operations.
--
Erik Max Francis && max at alcyone.com && http://www.alcyone.com/max/
San Jose, CA, USA && 37 20 N 121 53 W && AIM erikmaxfrancis
Golf is a good walk spoiled.
-- Mark Twain
More information about the Python-list
mailing list