This >1000-voted question has a +1000-voted answer that I think is substantively incorrect and misleading. (It suggests using fileinput.input()
to read from stdin. Fileinput does read from stdin, unless you provide a filename anywhere in argv
. So any script that can take a file argument AND stdin will behave incorrectly. It's also unnecessarily complicated--if all you want is to read stdin, sys.stdin
or input()
are better options.)
In general, I know that the guideline is don't edit for factual/substance reasons and if something is highly-upvoted and incorrect, tough luck. This question is specifically about whether an answer being community-wiki changes that, and if so, how so.
From the privs helppage:
When should I edit Community Wiki posts? Community wiki posts have been donated to the community in hopes that others will edit them to keep them up to date, to add useful information, and generally improve their quality. Take us up on that offer -- whenever you see a community wiki post and have something useful to contribute, edit it!
(In this particular question's case, the original poster of the answer has been inactive for 10 yrs, so I can't ask them if they'd be willing to change it. There's a number of better answers that could potentially be incorporated, if appropriate.)
I'm unsure how best to handle this. The community wiki designation invites me to improve the answer, but it feels like there's potentially a difference between 'add useful information' and 'completely rewrite'. I also don't want to copy the other answers (and thus rob their authors of the imaginary internet points they so richly deserve), nor do I want to put a "EDIT: see this other answer instead".
Other related meta's:
- Is changing answers to community wiki acceptable behaviour? (about how to request your answer no longer be community-wiki'd)
- Including other people's answer into your own accepted answer