You could use sys.platform()
You could use sys.platform()
But SerenityOS has pledge and unveil too.
https://awesomekling.github.io/pledge-and-unveil-in-Serenity...
Dunno if Python runs on SerenityOS or not yet tho
> "Systems other than OpenBSD may support these functions, now or in the future, and it would be nice to automatically make use of them when available. This means no checking for OpenBSD specifically but instead feature sniffing for their presence."
I view this as a feature and not a bug. There's a good chance there are other things to consider when a new OS adds pledge or unveil, and this gives the developer a chance to test support on the new OS before anyone uses it.
Basically, I disagree with the article that you want to implement this in Python in a completely OS agnostic manner.