Tobiah writes:
> Is it worth while to defer the import of a large module that seldom
> gets used in the script?
>
>
> import sys
> import os
>
> if hardly_ever_happens():
>
> import large_module
>
On 8/29/2016 1:57 PM, Tobiah wrote:
Is it worth while to defer the import of a large module that seldom
gets used in the script?
import sys
import os
if hardly_ever_happens():
import large_module
large_module.do_task()
I imagine it takes a certain amount of
On Tue, 30 Aug 2016 04:15:05 +1000, Chris Angelico wrote:
> Don't imagine; test.
Testing alone isn't really good enough. There may be perfectly valid
reasons to avoid the import which won't show up in anything less than the
most thorough testing imaginable.
Personally I wouldn't defer an import
On Mon, 29 Aug 2016 10:57:22 -0700, Tobiah wrote:
> Is it worth while to defer the import of a large module that seldom
> gets used in the script?
>
>
> import sys import os
>
> if hardly_ever_happens():
>
> import large_module large_module.do_task()
>
On Tue, Aug 30, 2016 at 3:57 AM, Tobiah wrote:
> Is it worth while to defer the import of a large module that seldom
> gets used in the script?
>
>
> import sys
> import os
>
> if hardly_ever_happens():
>
> import large_module
>
Is it worth while to defer the import of a large module that seldom
gets used in the script?
import sys
import os
if hardly_ever_happens():
import large_module
large_module.do_task()
I imagine it takes a certain