"Bill DeBroglie" <bill.debrog...@gmail.com> wrote
Sometimes the "print" function appears orange for me, sometimes it
appears purple. Why does this happen and what's the difference
anyway?
THere is probably no difference but one of several things could be
causing it.
First though, the colouring is done by your editing tool not Python.
So
a lot depends on the tool you use. If you use different editors then
you
can expect to see different colours - reason 1.
The colouring is derived from the context so if your print command
is accidentally put inside a string it will be coloured the same as
the
string - uindicating an error! - Reason 2.
You may have mismatched parentheses somewhere which
may cause the editor to consider your print as a value,
hence a different colour - Reason 3.
Some editors are sensitive to their context to the point of allowing
different colour schemes inside class definitions from out, maybe
yours does too. Reason 4
And there are probably others...
HTH,
--
Alan Gauld
Author of the Learn to Program web site
http://www.alan-g.me.uk/
_______________________________________________
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor