A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2013-July/127551.html below:

[Python-Dev] Python 3 as a Default in Linux Distros

[Python-Dev] Python 3 as a Default in Linux Distros [Python-Dev] Python 3 as a Default in Linux DistrosGreg Ewing greg.ewing at canterbury.ac.nz
Thu Jul 25 01:04:33 CEST 2013
Chris Angelico wrote:
>>>>print "Hello, world!"
> SyntaxError: invalid syntax
> 
> Is it safe
> to presume that it's more likely a syntax error will come from an
> interpreter version mismatch than a code bug?

Maybe look at sys.args[0], and if it ends in "python" with
no version number, add something to the error message about
possibly using the wrong version?

-- 
Greg
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4