[docs] Tutorial Different Than Reality

Georg Brandl georg at python.org
Tue Sep 27 08:10:46 CEST 2011


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Bill,

the tutorial you read is for Python 2.x, while you've installed 3.x, so you'll
have to read the docs at http://docs.python.org/py3k.

regards,
Georg

Am 26.09.2011 20:07, schrieb Bill Stephens:
> Hi,
> 
> 
> 
> Trying to learn yet another scripting language. Referring to tutorial on
> docs.python.org <http://docs.python.org>. Python 3.2.2 installed on
> Windows7.
> 
> Using: 13:25:39.64 C:\Work>python Python 3.2.2 (default, Sep  4 2011,
> 09:07:29) [MSC v.1500 64 bit (AMD64)] on win32 Type "help", "copyright",
> "credits" or "license" for more information.
>>>> 
> 
> In the tutorial on strings demonstrating surrounding a text string with
> ???:
> 
> *print*""" Usage: thingy [OPTIONS] -h                        Display this
> usage message -H hostname               Hostname to connect to """
> 
> Python handles this differently than the tutorial suggests:
> 
>>>> print """
> ... Usage: thingy [OPTIONS] ...      -h                    Display this
> usage message ...      -H hostname           Hostname to connect to ...
> """ File "<stdin>", line 5 """ ^ SyntaxError: invalid syntax
>>>> 
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.18 (GNU/Linux)

iEYEARECAAYFAk6BaOYACgkQN9GcIYhpnLDQBACgoKjFlb5LJ1exRXXzaMc0WkT9
7QQAoJeTnIb0d5TX0oqjcundm/MOiqtJ
=74S6
-----END PGP SIGNATURE-----


More information about the docs mailing list