A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-dev/attachments/20111208/c9e3df2c/attachment.html below:

hi devs,<br><br>just an idea that popped up in my mind: re.findall() returns a list of tuples, where every entry of each tuple represents a match group.<br>since match groups can be named, we are able to use named tuples instead of plain tuples here, in the same fashion as namedtuple’s rename works: misssing group names get renamed to _1 and so on. i suggest to add the rename keyword option, to findall, defaulting to True, since mixed positional and named tuples are more common than in usual use cases of namedtuple.<br>
<br>do you think it’s a good idea?<br><br>finally: should i join the mailing list to see answers? should i file a PEP? i have no idea how the inner workings of python development are, but i wanted to share this idea with you :)<br>
<br>thanks for keeping python great,<br>philipp<br>

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4