[Python-ideas] Improving Clarity of re Module

Ryan Gonzalez rymg19 at gmail.com
Thu Nov 28 00:15:33 CET 2013


Sounds nice!

Here are my names:

matchedText
matched
allGroups


On Wed, Nov 27, 2013 at 4:56 PM, MRAB <python at mrabarnett.plus.com> wrote:

> On 27/11/2013 21:41, Greg Ewing wrote:
>
>> Stephen J. Turnbull wrote:
>>
>>> Please, not "text"; I would expect that to be the target string, not a
>>> substring.
>>>
>>
>> I would have expected 'string' to be the matched text,
>> but it's not. So the most obvious name is already
>> taken. :-(
>>
>> How about 'all'?
>>
>>  All what?
>
> -1
>
> Reading the docs, it refers to the entire "matching string", so how
> about "matching_string"? Or "matched_part"?
>
>
> _______________________________________________
> Python-ideas mailing list
> Python-ideas at python.org
> https://mail.python.org/mailman/listinfo/python-ideas
>



-- 
Ryan
When your hammer is C++, everything begins to look like a thumb.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20131127/41c27dc2/attachment.html>


More information about the Python-ideas mailing list