Nov-20-2019, 12:41 AM
i want to create a module that mimics another module in a special way. in order to do this i need to create functions in my module with names discovered when that other module is imported. the names to be created are different than what the imported module has. the big problem is that locals() is not supposed to be used to add names to the local name space. is there any alternative way to do that? or is globals() the more appropriate way (in my module at the time it gets imported) to add variables dynamically (by name figured out at import time).
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.