![]() |
doc for os.stat() lacks exceptions - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: General (https://python-forum.io/forum-1.html) +--- Forum: News and Discussions (https://python-forum.io/forum-31.html) +--- Thread: doc for os.stat() lacks exceptions (/thread-32605.html) |
doc for os.stat() lacks exceptions - Skaperen - Feb-20-2021 while reading documentation for os.stat() and os.lstat() i don't see what exceptions it might raise or what errors could cause a return of None or something other than a stat_result object. the documentation just says they return a stat_result object. it can't if the file does not exist, so the documentation is clearly incomplete. where can i find documentation of all possible results of these functions? RE: doc for os.stat() lacks exceptions - Larz60+ - Feb-21-2021 you can find a list of os exceptions here: https://docs.python.org/3.9/library/exceptions.html#OSError |