file_lock¶
-
class
FileLock
(lock_file_path, timeout=- 1, delay=0.05)[源代码]¶ 基类:
object
A file locking mechanism that has context-manager support so you can use it in a with statement. This should be relatively cross compatible as it doesn't rely on msvcrt or fcntl for the locking.