Python Forum
using dir_fd=None in some functions
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
using dir_fd=None in some functions
#3
(Jun-13-2024, 11:33 PM)Skaperen Wrote: my question is, does specifying dir_fd=None count as not using it? or must that option name really need to be absent to count as not using it?
This is implied by the function's documentation. The signature os.lstat(path, *, dir_fd=None) means that dir_fd defaults to None. It means that not using dir_fd it is equivalent to using None. You need to check the doc of each function for which you want to do this.
« We can solve any problem by introducing an extra level of indirection »
Reply


Messages In This Thread
using dir_fd=None in some functions - by Skaperen - Jun-13-2024, 11:33 PM
RE: using dir_fd=None in some functions - by Gribouillis - Jun-14-2024, 07:22 PM

Forum Jump:

User Panel Messages

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