[docs] A small mistake in tutorial of docs.python 3.4

Zachary Ware zachary.ware+pydocs at gmail.com
Fri Oct 16 17:28:35 CEST 2015

Hi John,

On Thu, Oct 8, 2015 at 6:51 PM, john wu <john.wu at 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,

More information about the docs mailing list