This blog post (which I was the principal author of, with substantial input from the board at the time) talks about the current PSF Code of Conduct (which has subsequently had minor revisions), which has been in effect since 2019, and the reasons why it was adopted.
And this is a link to the current (2019-era) code of conduct: Python Software Foundation Code of Conduct - Python Software Foundation Policies