[Python-ideas] Improving Clarity of re Module
MRAB
python at mrabarnett.plus.com
Thu Nov 28 02:40:45 CET 2013
On 28/11/2013 01:24, Ryan Gonzalez wrote:
> Whoops...
>
> matched_text
The tendency is to refer to it as a "string" rather than "text".
> matched
> all_groups
>
The complaint was that .group isn't clear enough, so "all_groups" is
right out! :-) And there's already .groups...
> Bad habit from C++...
>
>
> On Wed, Nov 27, 2013 at 6:19 PM, Ben Finney <ben+python at benfinney.id.au
> <mailto:ben+python at benfinney.id.au>> wrote:
>
> Ryan Gonzalez <rymg19 at gmail.com <mailto:rymg19 at gmail.com>> writes:
>
> > Sounds nice!
> >
> > Here are my names:
> >
> > matchedText
> > matched
> > allGroups
>
> If those suggestions are for a library you hope to be widely used in
> Python, or even part of the standard library, please make them PEP 8
> conformant (avoid camelCaseNames).
>
[snip]
More information about the Python-ideas
mailing list