[issue28354] DeprecationWarning not reported for invalid escape sequences

2016-10-04 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: See issue28128. A warning should be emitted when you compile the code, but it shouldn't be emitted when you import compiled module. -- nosy: +serhiy.storchaka resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> Improv

[issue28354] DeprecationWarning not reported for invalid escape sequences

2016-10-04 Thread Sergey B Kirpichev
New submission from Sergey B Kirpichev: We know from release notes, that "A backslash-character pair that is not a valid escape sequence now generates a DeprecationWarning". Sometimes it's true: $ python -W error Python 3.6.0b1+ (default, Oct 4 2016, 08:47:51) [GCC 4.9.2] on linux Type "help"