ye andy added the comment:
When I say True here, I'm not talking about querying, I'm talking about
syntax, as far as I know, document is supposed to support keyword
arguments, but it doesn't
Steven D'Aprano 于2020年12月29日周二 上午11:36写道:
>
> Steven D'Aprano
Change by ye andy :
--
stage: -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.org/issue42550>
___
___
Python-bugs-list
ye andy added the comment:
Okay, I just thought it was weird
--
___
Python tracker
<https://bugs.python.org/issue42550>
___
___
Python-bugs-list mailin
ye andy added the comment:
My regulus requires the beginning of 0x, the end of 0-9A-fa-f, my ending \n, he
also shows success, my expected result is failure, I wrote the problem?
--
___
Python tracker
<https://bugs.python.org/issue42
ye andy added the comment:
My regex requires ending with 0-9a-fa-f, and I now end with a line break, which
in theory should not work. Why did it work?
--
nosy: -Dennis Sweeney
___
Python tracker
<https://bugs.python.org/issue42
ye andy added the comment:
What I mean by that is that the regex That I wrote should match successfully is
a 42-bit string, but it is also successful when we add more newlines
--
___
Python tracker
<https://bugs.python.org/issue42
New submission from ye andy :
import re
a = """0xd26935a5ee4cd542e8a3a7e74fb7a99855975b59\n"""
eth_re = re.compile(r'^0x[0-9a-fA-F]{40}$')
print(eth_re.match(a))
print(len(a)) # 长度43
--
components: Library (Lib)
messages: 382367
nosy: andy