[issue957650] Fix for bugs relating to ntpath.expanduser()
Geoffrey Bache gjb1...@users.sourceforge.net added the comment: Just ran into this myself, and would agree with Christian's comments. On my system, my home directory is a mounted network drive, hence H:\. It was a bit of a surprise when os.path.expanduser(~fred) returned H:\\fred... This seems broken to me. It's surely better to have reliable functions that either work or return the path unchanged, than ones that guess and are wrong some of the time. At least in the above case it should be possible to add a special case. Will this be considered for Python 2.7 now? I'd suggest opening a new bug or reopening this one if so. -- nosy: +gjb1002 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue957650 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue957650] Fix for bugs relating to ntpath.expanduser()
Geoffrey Bache gjb1...@users.sourceforge.net added the comment: In fact, wouldn't a very simple fix be to not return paths that don't exist? That would probably catch 90% of the cases. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue957650 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue957650] Fix for bugs relating to ntpath.expanduser()
Changes by Martin v. Löwis [EMAIL PROTECTED]: -- assignee: loewis - priority: high - normal resolution: - accepted status: open - closed ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue957650 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue957650] Fix for bugs relating to ntpath.expanduser()
Christian Heimes [EMAIL PROTECTED] added the comment: I just saw this bug entry in the whatsnew list. The os.path.expanduser() function handles ~user the wrong way. The (naive) implementation expects that all user directories are inside a common base path. This is only true for standalone Windows computers. There is no way to get the path to a user's home directory w/o her login+password or the login of a domain admin. The feature should be removed in 2.6.1. Martin, do you concur? -- assignee: georg.brandl - loewis components: +Windows -None nosy: +christian.heimes, loewis priority: normal - high resolution: accepted - status: closed - open versions: +Python 2.6, Python 3.0 ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue957650 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com