On 05/03/2015 08:10, Alan Gauld wrote:
On 05/03/15 01:53, Phil wrote:
I hope this is not another embarrassingly obvious answer to a simple
question.

Python 3, under Kubuntu.

xrange() fails whereas range() is accepted. Could this be an
installation problem?

There are many incompatible changes in Python v3 compared with v2.
Some are obvious like the removal of xrange and raw_input and a few
others. Some are slightly more subtle like the change of print from a
statement to a function. Still others are simply name changes to improve
consistency of naming.

The standard library has had a major makeover too and many
modules have been reorganised and renamed.

If you are moving to v3 you need to keep the documentation
handy for the first few weeks to quickly check errors to
see if its a bug or a feature!


Starting here https://docs.python.org/3/howto/pyporting.html

--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.

Mark Lawrence

_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor

Reply via email to