[Python-Dev] Python 3 as a Default in Linux Distros (original) (raw)
Laurent Gautier lgautier at gmail.com
Wed Jul 24 19:22:35 CEST 2013
- Previous message: [Python-Dev] Python 3 as a Default in Linux Distros
- Next message: [Python-Dev] Python 3 as a Default in Linux Distros
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On 07/24/2013 06:30 PM, Chris Angelico wrote:
On Thu, Jul 25, 2013 at 2:21 AM, Laurent Gautier <lgautier at gmail.com> wrote:
- errors that are typical of "Python 2 script running with Python 3"-specific are probably limited (e.g., use of unicode, use of xrange, etc...)
The most common, in interactive scripts at least, is likely to be:
print "Hello, world!" SyntaxError: invalid syntax How helpful it's possible to make that one, I don't know. Is it safe to presume that it's more likely a syntax error will come from an interpreter version mismatch than a code bug?
The wrapper in /usr/bin/python:
- could use what is in 2to3. I think that most of the cases are solved there.
- whenever interactive, could have an intermediate layer between the input in the console and execution.
ChrisA
Python-Dev mailing list Python-Dev at python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/lgautier%40gmail.com
- Previous message: [Python-Dev] Python 3 as a Default in Linux Distros
- Next message: [Python-Dev] Python 3 as a Default in Linux Distros
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]