Unrecognized escape sequences in string literals
Douglas Alan
darkwater42 at gmail.com
Mon Aug 10 11:21:03 EDT 2009
On Aug 10, 10:58 am, Scott David Daniels <Scott.Dani... at Acm.Org>
wrote:
> The string rules reflect C's rules, and I see little
> excuse for trying to change them now.
No they don't. Or at least not C++'s rules. C++ behaves exactly as I
should like.
(Or at least g++ does. Or rather *almost* as I would like, as by
default it generates a warning for "foo\zbar", while I think that an
error would be somewhat preferable.)
But you're right, it's too late to change this now.
|>ouglas
More information about the Python-list
mailing list