Change by brent s. :
--
nosy: +bsaner
___
Python tracker
<https://bugs.python.org/issue9253>
___
___
Python-bugs-list mailing list
Unsubscribe:
https://mail.pyth
brent s. 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
brent s. added the comment:
"'\.' is an invalid escape sequence. Could you try it with a raw string?"
Well, a valid regex escape, but right. Point taken. I am under the impression,
however, that given the value in ptrn (in example.py) is already a string, it
should be
brent s. added the comment:
WORKAROUND:
Obviously, str.rstrip('.') still works, but this is of course quite inflexible
compared to a regex pattern.
--
___
Python tracker
<https://bugs.python.o
brent s. added the comment:
Sorry- by "chokes", I mean "substitutes in multiple replacements".
--
___
Python tracker
<https://bug
New submission from brent s. :
(Sorry for the title; not quite sure how to summarize this)
SO! Have I got an interesting one for you.
ISSUE:
In release 3.7.3 (and possibly later), the re module, if one has a string e.g.
'a.b.', a pattern such as '\.*$' will successfully *
New submission from brent s. :
Currently, a parsed urlparse() object looks (roughly) like this:
urlparse('http://example.com/foo;key1=value1?key2=value2#key3=value3#key4=value4')
returns:
ParseResult(scheme='http', netloc='example.com', path='/foo',