Where is that? The only code of conduct I have found is here:
https://us.pycon.org/2013/about/code-of-conduct/
The only mention I see of photography is in this sentence.
> Harassment includes offensive verbal comments related to gender, sexual orientation, disability, physical appearance, body size, race, religion, sexual images in public spaces, deliberate intimidation, stalking, following, harassing photography or recording, sustained disruption of talks or other events, inappropriate physical contact, and unwelcome sexual attention.
I think you could make a reasonable that this is "harrassing photography." (I disagree, but I think it's a matter of opinion.) I don't see anything about photography requiring consent, although the code of conduct is shorter than I expected (the "Longer Version" on that page is not much longer than the "Short Version"). Is this just a summary of a longer document somewhere?