[Bug 1844518] Re: Ubuntu 19:10 - Python 3 os.path.isfile not working as expected
Manfred Hampl
1844518 at bugs.launchpad.net
Thu Sep 19 16:56:09 UTC 2019
In my opinion this bug can be set to invalid.
In the linked question #684013 it became evident, that (for whatever reason) /vmlinuz was a dangling symlink pointing to a non-existing kernel version. So python's output islink:true and isfile:false is fully correct.
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to python3-defaults in Ubuntu.
https://bugs.launchpad.net/bugs/1844518
Title:
Ubuntu 19:10 - Python 3 os.path.isfile not working as expected
Status in python3-defaults package in Ubuntu:
Incomplete
Bug description:
When one runs "os.path.isfile("/vmlinuz")" or the same for
os.path.exists, False is returned. However, given the information at:
https://docs.python.org/3.8/library/os.path.html#os.path.isfile and
https://docs.python.org/3.7/library/os.path.html#os.path.isfile, True
should be returned for links as well.
"os.path.islink("/vmlinuz")" works as expected, so I'm not sure what's
going on here.
Any ideas? It could be my VM as it's been running 19.10 for a little
while now.
Hamish
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python3-defaults/+bug/1844518/+subscriptions
More information about the foundations-bugs
mailing list