brent s. <brent.sa...@gmail.com> added the comment:
Oh for pete's sake. I wish I could edit comments. Eric- To make it clear: ***** VERSION: 2.7.16 (default, Mar 11 2019, 18:59:25) [GCC 8.2.1 20181127] PATTERN: \.*$ BEFORE: a.b WITHOUT: a.b DUMMY: a.bX AFTER: a.b. RSTRIP: a.b == BEFORE: a.b. WITHOUT: a.b DUMMY: a.bX AFTER: a.b. RSTRIP: a.b == BEFORE: a.b.. WITHOUT: a.b DUMMY: a.bX AFTER: a.b. RSTRIP: a.b == BEFORE: a.b... WITHOUT: a.b DUMMY: a.bX AFTER: a.b. RSTRIP: a.b == ***** VERSION: 3.7.3 (default, Jun 24 2019, 04:54:02) [GCC 9.1.0] PATTERN: \.*$ BEFORE: a.b WITHOUT: a.b DUMMY: a.bX AFTER: a.b. RSTRIP: a.b == BEFORE: a.b. WITHOUT: a.b DUMMY: a.bXX AFTER: a.b.. RSTRIP: a.b == BEFORE: a.b.. WITHOUT: a.b DUMMY: a.bXX AFTER: a.b.. RSTRIP: a.b == BEFORE: a.b... WITHOUT: a.b DUMMY: a.bXX AFTER: a.b.. RSTRIP: a.b == Note the differences between versions for cases a.b., a.b.., and a.b... ("BEFORE: ..." lines). Compare their "AFTER" and "DUMMY" lines between python2 and python3. Serhiy- Apologies; I meant RFC1035; I typo'd that. But as shown above, the difference is pretty distinct (and inconsistent with GNU sed behaviour). ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue37594> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com