This is a major pet peeve of mine. Somebody posts a question for Python 3.x, but doesn't state that they're running 3.x. There's very few context clues at all, in fact. I, with my knowledge of Python 2.7, try to answer the question from that standpoint. My answer attracts more questions, though, when I'm using print
statements with no parentheses, raw_input
instead of input
, and that weird, funky reduce
thing.
Here's the root issue at hand: Because Python 2.x and Python 3.x are nearly incompatible, should the python
tag be removed/retired/disambiguated so that all new questions describe which version of Python they use?
python
tag. If you're uncertain which version the OP is using, you can always ask for clarification in the comments, or sometimes it's possible to find hints within the OP's code. I usually try to answer with both versions in mind (writing a version compatible solution), or I would provide two solutions if absolutely necessary.python
in combination withpython-2.x
orpython-3.x
in the case of the questions where the version is relevant. But the question is useful, and the answer is "no".python
tag used together withpython-2.x
andpython-3.x
. No need to remove it.