i have hundreds of Python functions and often use quite many of them. there are two major methods i have tried to import these functions. method 1 keeps each function in a separate file in a directory listed in the PYTHONPATH environment variable. method 2 merges all (or some) of the functions in one single file which is placed in a directory listed in the PYTHONPATH environment variable. method 1 has the disadvantage of requiring a separate import statement for each function. method 2 has the disadvantage of importing a huge file (just once per script that needs it). it has over 34000 lines.
i'm curious if Python has any alternatives that could be more efficient or have less of an impact.
i'm curious if Python has any alternatives that could be more efficient or have less of an impact.
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.