Question on Python strings
olivier.hallot at libreoffice.org
Thu Jul 29 14:33:14 UTC 2021
LO a rather large Python text file containing 10.000's of Lightproof
rules for pt-BR (dictionaries/pt_BR/pythonpath/lightproof_pt_BR.py)
The file is a map full strings patterns such as
"looooooooooooongStringA", "looooooooooongStringB", "looooooooongStrinC"
repeated several thousands times in the file.
My question is: Does it make sense to define aux variables
lstA = "looooooooooooongStringA"
lstB = "looooooooooongStringB"
lstC = "looooooooongStrinC"
and put the variables in the map instead? The main reason is to improve
readability of the file but I'm not sure there is any other gain
(speed?) or any drawback.
Thanks for the advise
LibreOffice Documentation Coordinator
Rio de Janeiro - Brasil - Local Time: UTC-03:00
LibreOffice – free and open source office suite: https://www.libreoffice.org
Respects your privacy, and gives you back control over your data
More information about the LibreOffice