Skip to main content
tag fence
Source Link
cottontail
  • 22.3k
  • 6
  • 24
  • 53

When is it permissible to update other people's answers for Python 3?

It's a slippery slope. But it would be such a minor change. Look at this little gem:

with open("datafile") as myfile:
    head = [next(myfile) for x in xrange(N)]
print head

Of course, xrange() is now just range(), and print is now print().

At some point in the (near) future, examples like this will no longer be relevant since new users will most likely start with Python 3 or later.

What's the plan?

I imagine an organic change will happen regardless: OPs editing their examples, adding the python3 tag. And then maybe users updating other people's simple snippets like this gem.

Of course, the obvious problem is the breakdown of comment relatedness. The above example is a good one, because its comments refer to both Python2 and Python3, and these comments would be irrational if the code was updated.

A related meta-topic are questions of this sort, How to deal with hugely upvoted, bad and outdated answers?.

When is it permissible to update other people's answers for Python 3?

It's a slippery slope. But it would be such a minor change. Look at this little gem:

with open("datafile") as myfile:
    head = [next(myfile) for x in xrange(N)]
print head

Of course, xrange() is now just range(), and print is now print().

At some point in the (near) future, examples like this will no longer be relevant since new users will most likely start with Python 3 or later.

What's the plan?

I imagine an organic change will happen regardless: OPs editing their examples, adding the python3 tag. And then maybe users updating other people's simple snippets like this gem.

Of course, the obvious problem is the breakdown of comment relatedness. The above example is a good one, because its comments refer to both Python2 and Python3, and these comments would be irrational if the code was updated.

A related meta-topic are questions of this sort, How to deal with hugely upvoted, bad and outdated answers?.

When is it permissible to update other people's answers for Python 3?

It's a slippery slope. But it would be such a minor change. Look at this little gem:

with open("datafile") as myfile:
    head = [next(myfile) for x in xrange(N)]
print head

Of course, xrange() is now just range(), and print is now print().

At some point in the (near) future, examples like this will no longer be relevant since new users will most likely start with Python 3 or later.

What's the plan?

I imagine an organic change will happen regardless: OPs editing their examples, adding the tag. And then maybe users updating other people's simple snippets like this gem.

Of course, the obvious problem is the breakdown of comment relatedness. The above example is a good one, because its comments refer to both Python2 and Python3, and these comments would be irrational if the code was updated.

A related meta-topic are questions of this sort, How to deal with hugely upvoted, bad and outdated answers?.

copied question from title to body
Source Link
philipxy
  • 15.1k
  • 4
  • 19
  • 19

When is it permissible to update other people's answers for Python 3?

It's a slippery slope. But it would be such a minor change (>_<). Look at this little gem:

with open("datafile") as myfile:
    head = [next(myfile) for x in xrange(N)]
print head

Of course, xrange() is now just range(), and print is now print().

At some point in the (near) future, examples like this will no longer be relevant since new users will most likely start with Python 3 or later.

What's the plan?

I imagine an organic change will happen regardless: OPs editing their examples, adding the python3 tag. And then maybe users updating other people's simple snippets like this gem.

Of course, the obvious problem is the breakdown of comment relatedness. The above example is a good one, because its comments refer to both Python2 and Python3, and these comments would be irrational if the code was updated.

A related meta-topic are questions of this sort, How to deal with hugely upvoted, bad and outdated answers?.

It's a slippery slope. But it would be such a minor change (>_<). Look at this little gem:

with open("datafile") as myfile:
    head = [next(myfile) for x in xrange(N)]
print head

Of course, xrange() is now just range(), and print is now print().

At some point in the (near) future, examples like this will no longer be relevant since new users will most likely start with Python 3 or later.

What's the plan?

I imagine an organic change will happen regardless: OPs editing their examples, adding the python3 tag. And then maybe users updating other people's simple snippets like this gem.

Of course, the obvious problem is the breakdown of comment relatedness. The above example is a good one, because its comments refer to both Python2 and Python3, and these comments would be irrational if the code was updated.

A related meta-topic are questions of this sort, How to deal with hugely upvoted, bad and outdated answers?.

When is it permissible to update other people's answers for Python 3?

It's a slippery slope. But it would be such a minor change. Look at this little gem:

with open("datafile") as myfile:
    head = [next(myfile) for x in xrange(N)]
print head

Of course, xrange() is now just range(), and print is now print().

At some point in the (near) future, examples like this will no longer be relevant since new users will most likely start with Python 3 or later.

What's the plan?

I imagine an organic change will happen regardless: OPs editing their examples, adding the python3 tag. And then maybe users updating other people's simple snippets like this gem.

Of course, the obvious problem is the breakdown of comment relatedness. The above example is a good one, because its comments refer to both Python2 and Python3, and these comments would be irrational if the code was updated.

A related meta-topic are questions of this sort, How to deal with hugely upvoted, bad and outdated answers?.

Added source fence with language code.
Source Link
bad_coder
  • 12.7k
  • 2
  • 19
  • 51

It's a slippery slope. But it would be such a minor change (>_<). Look at this little gem:

with open("datafile") as myfile:
    head = [next(myfile) for x in xrange(N)]
print head
with open("datafile") as myfile:
    head = [next(myfile) for x in xrange(N)]
print head

Of course, xrange() is now just range(), and print is now print().

At some point in the (near) future, examples like this will no longer be relevant since new users will most likely start with Python 3 or later.

What's the plan?

I imagine an organic change will happen regardless: OPs editing their examples, adding the python3 tag. And then maybe users updating other people's simple snippets like this gem.

Of course, the obvious problem is the breakdown of comment relatedness. The above example is a good one, because its comments refer to both Python2 and Python3, and these comments would be irrational if the code was updated.

A related meta-topic are questions of this sort, How to deal with hugely upvoted, bad and outdated answers?.

It's a slippery slope. But it would be such a minor change (>_<). Look at this little gem:

with open("datafile") as myfile:
    head = [next(myfile) for x in xrange(N)]
print head

Of course, xrange() is now just range(), and print is now print().

At some point in the (near) future, examples like this will no longer be relevant since new users will most likely start with Python 3 or later.

What's the plan?

I imagine an organic change will happen regardless: OPs editing their examples, adding the python3 tag. And then maybe users updating other people's simple snippets like this gem.

Of course, the obvious problem is the breakdown of comment relatedness. The above example is a good one, because its comments refer to both Python2 and Python3, and these comments would be irrational if the code was updated.

A related meta-topic are questions of this sort, How to deal with hugely upvoted, bad and outdated answers?.

It's a slippery slope. But it would be such a minor change (>_<). Look at this little gem:

with open("datafile") as myfile:
    head = [next(myfile) for x in xrange(N)]
print head

Of course, xrange() is now just range(), and print is now print().

At some point in the (near) future, examples like this will no longer be relevant since new users will most likely start with Python 3 or later.

What's the plan?

I imagine an organic change will happen regardless: OPs editing their examples, adding the python3 tag. And then maybe users updating other people's simple snippets like this gem.

Of course, the obvious problem is the breakdown of comment relatedness. The above example is a good one, because its comments refer to both Python2 and Python3, and these comments would be irrational if the code was updated.

A related meta-topic are questions of this sort, How to deal with hugely upvoted, bad and outdated answers?.

replaced http://stackoverflow.com/ with https://stackoverflow.com/
Source Link
Loading
deleted 5 characters in body; edited title
Source Link
Nick Cox
  • 37.1k
  • 12
  • 7
Loading
Active reading. [(its = possessive, it's = "it is" or "it has". See for example <http://www.wikihow.com/Use-Its-and-It%27s>.)]
Source Link
Peter Mortensen
  • 31.6k
  • 4
  • 22
  • 14
Loading
minor title change
Link
xtian
  • 2.9k
  • 15
  • 8
Loading
Source Link
xtian
  • 2.9k
  • 15
  • 8
Loading