Serhiy Storchaka <storchaka+cpyt...@gmail.com> added the comment:
I get it printed two times. Actually I get it printed four times: two time when compile the test script (use r"'\d'" or "'\\d'" to get rid of them), and other two times when call compile() inside a script. $ ./python issue40199.py issue40199.py:3: DeprecationWarning: invalid escape sequence \d compile("'\d'", "<string>", "eval") issue40199.py:5: DeprecationWarning: invalid escape sequence \d compile("'\d'", "<string>", "eval") <string>:1: DeprecationWarning: invalid escape sequence \d <string>:1: DeprecationWarning: invalid escape sequence \d ---------- nosy: +serhiy.storchaka _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue40199> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com