Why doesn't input code return 'plants' as in 'Getting Started with Beautiful Soup' text (on page 30) ?

Peter Otten __peter__ at web.de
Sun Jul 12 09:12:15 EDT 2015


Simon Evans wrote:

> Dear Peter Otten,
> Yes, I have been copying and pasting, as it saves typing. I do get
> 'indented block' error responses as a small price to pay for the time and
> energy thus saved. Also Console seems to reject for 'indented block'
> reasons better known to itself, copy and pasted lines that it accepts and 
> are exactly the same on the following line of input. Maybe it is an
> inbuilt feature of Python's to discourage copy and pasting.

You should not ignore the error. It means that the respective code was not 
executed.




More information about the Python-list mailing list