Unrecognized backslash escapes in string literals

Ben Finney ben+python at benfinney.id.au
Sun Feb 22 22:35:25 EST 2015


Chris Angelico <rosuav at gmail.com> writes:

> That said, though, there's probably a lot of code out there that
> depends on backslashes being non-special, so it's quite probably
> something that can't be changed. But it'd be nice to be able to turn
> on a warning for it.

If you're motivated to see such warnings, an appropriate place to
implement them would be in PyLint or another established static code
analysis tool.

-- 
 \            “The whole area of [treating source code as intellectual |
  `\    property] is almost assuring a customer that you are not going |
_o__)               to do any innovation in the future.” —Gary Barnett |
Ben Finney




More information about the Python-list mailing list