Serhiy Storchaka <storchaka+cpyt...@gmail.com> added the comment:

How would you work with a file in the "~" directory?

Python is a programming language. It provides you builtin blocks which you can 
combine to get the desired behavior. If you what "~" at the start of the path 
be expanded to your home directory, you call os.path.expanduser() explicitly. 
If you want it mean the literal "~" directory, you do not call 
os.path.expanduser(). Calling it implicitly would break existing code, require 
you to use ugly workarounds if you don't want to expand "~", and introduce 
possible security issues.

----------
nosy: +serhiy.storchaka

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue40271>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to