trbs / pid

Pidfile featuring stale detection and file-locking, can also be used as context-manager or decorator
https://pypi.python.org/pypi/pid/
Apache License 2.0
102 stars 26 forks source link

Document PidFileBase constructor arguments #35

Closed rudolfbyker closed 4 years ago

rudolfbyker commented 4 years ago

I can't find any documentation for the PidFileBase constructor's arguments. I've been reading the source code, and I'm having trouble seeing e.g. what the difference between lock_pidfile and allow_samepid is.

trbs commented 4 years ago

Your right in that documentation is poor / non-existent :-(

Also I've been thinking for a while that the constructor argument probably should be reshuffled to make more intuitive sense...

The tests might also help deciphering things a bit, although that's also not like proper documentation.

From the top of my head:

The interplay is that one can have: