Python Forum
doc for os.stat() lacks exceptions
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
doc for os.stat() lacks exceptions
#1
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?
Tradition is peer pressure from dead people

What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Reply
#2
you can find a list of os exceptions here: https://docs.python.org/3.9/library/exce...ml#OSError
Skaperen likes this post
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  where is documentation for stat result attributes in PDF docs? Skaperen 5 1,045 May-18-2023, 07:24 PM
Last Post: Skaperen
  annoying conflict: stat Skaperen 2 2,209 Dec-26-2019, 06:04 AM
Last Post: Skaperen
  random module lacks instantiation Skaperen 3 2,312 Dec-03-2019, 02:53 PM
Last Post: ichabod801

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020