Feb-04-2018, 03:07 AM
then i guess i need to ask if some idea makes ugly or non-pythonic code. so it is not ugly if a complicated expression is repeated, or do i need to do the detail work myself of "caching" it in another variable myself? a compiler or interpreter can detect that the expression is the same and has no side effects and cache it itself but readers of the code then have to visually compare each expression to be sure there is no subtle difference. at least in assembly language we had no complex expressions. but i am now long past assembly language (it wasn't very portable) and more oriented to code readability and abstract expression (and hopefully, portable).
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.