A small mistake in tutorial of docs.python 3.4
Dear, The space between "C>" and "print('Yuck!") makes an error, "unexpected indent". Hope it will help you. (pic1) [cid:image001.png@01D10267.4DAD5FF0] (pic2) [cid:image002.png@01D10267.7F10CEB0] Thank you. Best regards, John Wu Product Manager - China | BCD Travel 6/F, Building 3B, South Section Shanghai TianHua Info. Science and Tech. Park No.195 Long Tian Road | Shanghai, 200235 |China T +86 6132 8586 This message and any attachment(s) are intended only for the use of the person or entity to which it is addressed and may contain confidential and/or proprietary information. Any review, retransmission, dissemination, or other use of, or taking of any action in reliance upon, this message and any attachment(s) by persons or entities other than the intended recipient is prohibited. If you are not the intended recipient of this message, or if this message has been addressed to you in error, please immediately alert the sender by reply email and delete this message, including any attachments. Sender accepts no liability for any damages caused by any virus transmitted by this email.
Hi John, On Thu, Oct 8, 2015 at 6:51 PM, john wu <john.wu@bcdtravel.cn> wrote:
The space between “C>” and “print(‘Yuck!”) makes an error, “unexpected indent”.
Look carefully: the unexpected indent actually came from a mis-copy when you assigned to sys.ps1. The example shows "sys.ps1 = 'C> '" (note the space after the >), while in your trial you did "sys.ps1 = 'C>'" (no space), then added the space when typing in the next line of the example. If you add the space in the assignment to sys.ps1, as in the example, there is no error. Hope this helps, -- Zach
Hi Zach, I'm so sorry for the email with double question. When I resend the email to you, I found the mistake you told me. But I can't withdraw the last email. Hope it will not disturb you a lot. Thanks for your help again! Thank you. Best regards, John Wu T +86 6132 8586 -----邮件原件----- 发件人: zachary.ware@gmail.com [mailto:zachary.ware@gmail.com] 代表 Zachary Ware 发送时间: 2015年10月16日 23:29 收件人: docs@python.org 抄送: john wu 主题: Re: [docs] A small mistake in tutorial of docs.python 3.4 Hi John, On Thu, Oct 8, 2015 at 6:51 PM, john wu <john.wu@bcdtravel.cn> wrote:
The space between “C>” and “print(‘Yuck!”) makes an error, “unexpected indent”.
Look carefully: the unexpected indent actually came from a mis-copy when you assigned to sys.ps1. The example shows "sys.ps1 = 'C> '" (note the space after the >), while in your trial you did "sys.ps1 = 'C>'" (no space), then added the space when typing in the next line of the example. If you add the space in the assignment to sys.ps1, as in the example, there is no error. Hope this helps, -- Zach
participants (2)
-
john wu
-
Zachary Ware