Aug-27-2018, 09:16 PM
i would like to have some code be able to read its own python source file, perhaps by finding it somehow, opening that for reading, then reading it line by line. the difficulty i anticipate is because i want a module to be able to do (reading the modules own source) this and have the implementation be in a module. then what if it is being run from a .pyc or .pyo file (assuming the source exists). if the source is not present, then return something to indicate that or raise an exception.
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.