Question on Python strings

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi

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
--
Olivier Hallot
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
http://tdf.io/joinus
_______________________________________________
LibreOffice mailing list
LibreOffice@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/libreoffice




[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux