Nov-19-2018, 12:15 AM
if i do it with a setup function, how will the importee/module define things in the importer's global space?
currently with the importer not needing to change anything, the import is done like this:
currently with the importer not needing to change anything, the import is done like this:
from debugtoys import pf,pr,pv,sland if it needs to force the debugging to be enabled it does:
os.environ['debugtoys']='True' from debugtoys import pf,pr,pv,sli'm guessing what i will need to do is:
import debugtoys pf,pr,pv,sl = debugtoys.set_up(eval(os.environ['enable_debug']))is that the kind thing you are suggesting? i want to keep the default case especially simple.
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.