Python console rejects an object reference, having made an object with that reference as its name in previous line

Chris Angelico rosuav at gmail.com
Sun Dec 14 21:42:10 EST 2014


On Mon, Dec 15, 2014 at 1:32 PM, Chris Roy-Smith
<chris_roysmith at internode.on.net> wrote:
> and here he uses a python 3.x print syntax which triggers the following
> error message

On the contrary; parens around a single argument will work just fine
in Py2 (they're simply redundant parentheses, in the same way that you
can write "i = (1)" and it's the same as "i = 1"). The syntax error
comes from unindenting without ending the block, as several have
pointed out already.

ChrisA



More information about the Python-list mailing list