qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH 10/28] qapi: Rework name checking in preparation of stricter


From: John Snow
Subject: Re: [PATCH 10/28] qapi: Rework name checking in preparation of stricter checking
Date: Tue, 23 Mar 2021 10:30:10 -0400
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.0

On 3/23/21 10:20 AM, Eric Blake wrote:
-valid_name = re.compile(r'^(__[a-zA-Z0-9.-]+_)?'
-                        '[a-zA-Z][a-zA-Z0-9_-]*$')
I'm assuming python concatenates r'' with '' in the obvious manner...


FWIW, I don't think it does, actually. I believe you do need to spell out each individual string constant with what type it is.

(In this case, missing the second r has no effect as there are no backslash sequences in the string.)

--js




reply via email to

[Prev in Thread] Current Thread [Next in Thread]