[docs] Tutorial Different Than Reality
Bill Stephens
bill.stephens at sungard.com
Mon Sep 26 20:07:32 CEST 2011
Hi,
Trying to learn yet another scripting language.
Referring to tutorial on 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
>>>
Regards,
Bill Stephens
*Sr. Systems Engineer ▪ Advanced Operations Group/High Availability*
*SunGard Availability Services ▪ 401 N. Broad Street, Philadelphia, PA 19108
** *
Normal working hours: 7am-3:30pm M-F ▪ Phone 215.351.1099 ▪ Fax 215.351.0708
*Keeping People and Information Connected® ▪
http://www.availability.sungard.com/ *
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/docs/attachments/20110926/9171d0c7/attachment-0001.html>
More information about the docs
mailing list