3 ms·
One reason to import something within a function would be for lazy loading. If I do end up having many different imports, I tend to group them by library/frame
by csytan 17y ago
One reason to import something within a function would be for lazy loading. If I do end up having many different imports, I tend to group them by library/framework.
I've learned a lot by looking at the source code for guido's rietveld:
http://code.google.com/p/rietveld/source/browse/trunk/codereview/engine.py http://code.google.com/p/rietveld/source/browse/trunk/codere...