* [EMAIL PROTECTED] <[EMAIL PROTECTED]> [2008-05-10 13:56:39 -0700]: > There's a thing that bugs me in Python. Look at this... > > >>> print "Testing\" > SyntaxError: EOL while scanning single-quoted string > > > Please focus on the part of the error message that states "while > scanning single-quoted string". How can Python claim it scanned a > single-quoted string when I fed it with a double-quoted string? Is > quote type (single quote and double quote) recognition not implemented > in Python?
The "single-quoted string" (e.g. 'foo' or "bar") is so named by opposition to triple-quoted (e.g. '''foo''' or """bar""") strings. Regards, -- Nicolas Dandrimont
signature.asc
Description: Digital signature
-- http://mail.python.org/mailman/listinfo/python-list