Aug. 6, 2019
3:21 p.m.
On 06/08/2019 07:14:35, Michael wrote:
For "filenames" you could, perhaps, make an exception in the calls that use them. e.g., when they are hard-coded in something such as open("..\training\new_memo.doc").
Sorry, that won't work. Strings are parsed at compile time, open() is executed at run-time. And the use of open might be masked by using a synonym for it; open might be shadowed by the program assigning to it; the argument to open() might be an expression such as ("..training\new_memo" + extn) etc., etc. Rob Cliffe