Jun-14-2024, 07:22 PM
(This post was last modified: Jun-14-2024, 07:24 PM by Gribouillis.)
(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 »