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
_______________________________________________
Python-Dev mailing list -- python-dev@python.org
To unsubscribe send an email to python-dev-le...@python.org
https://mail.python.org/mailman3/lists/python-dev.python.org/
Message archived at 
https://mail.python.org/archives/list/python-dev@python.org/message/5G2JKQKSLAA5CQRUHCN7JFKY2KPIGYYX/

Reply via email to