A RetroSearch Logo

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

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2013-July/127342.html below:

[Python-Dev] Misc re.match() complaint

[Python-Dev] Misc re.match() complaint [Python-Dev] Misc re.match() complaintStephen J. Turnbull stephen at xemacs.org
Tue Jul 16 04:03:17 CEST 2013
Guido van Rossum writes:

 > And I still think that any return type for group() except bytes or str
 > is wrong. (Except possibly a subclass of these.)

I'm not sure I understand.  Do you mean in the context of the match
object API, where constructing "(target, match.start(), match.end())"
to get a group-like object that refers to the target rather than
copying the text is simple?  (Such objects are very useful in the
restricted application of constructing a programmable text editor.)

Or is this something deeper, that a group *is* a new object in
principle?

More information about the Python-Dev mailing list

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