Oct-15-2017, 01:57 AM
module time has a function named time. some code does
this can lead to conflicts.
i have a module that needs to call time.sleep(). if i do an import in the module it could change what that code (the code importing my module) has for the (global) variable named time. is there a nice resolution to this or do i need to do the import of time or time.sleep in the functions that need it?
import time
and calls that function like time.time()
. other code does from time import time
and calls that function like time()
.this can lead to conflicts.
i have a module that needs to call time.sleep(). if i do an import in the module it could change what that code (the code importing my module) has for the (global) variable named time. is there a nice resolution to this or do i need to do the import of time or time.sleep in the functions that need it?
Tradition is peer pressure from dead people
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.