[Python-Dev] Misc re.match() complaint (original) (raw)
Ezio Melotti ezio.melotti at gmail.com
Thu Jul 18 15:15:44 CEST 2013
- Previous message: [Python-Dev] Misc re.match() complaint
- Next message: [Python-Dev] Misc re.match() complaint
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi,
On Wed, Jul 17, 2013 at 6:15 AM, Stephen J. Turnbull <stephen at xemacs.org> wrote:
BTW, I suggest that Terry's usage of "string" (to mean "str or bytes" in 3.x, "unicode or str" in 2.x) be adopted, and Guido's "stringish" be given expanded meaning, including buffer objects.
"string" means "str", "bytes" means "bytes", "bytes-like object" means "any object that supports the buffer protocol" 0 (including bytes). "string and bytes-like object" includes all of them. I don't think we need to introduce new terms.
Best Regards, Ezio Melotti
Then we can say informally that in searching and matching a target is a stringish, the pattern is a stringish (?) or compiled re, but the group method returns a string.
Steve
- Previous message: [Python-Dev] Misc re.match() complaint
- Next message: [Python-Dev] Misc re.match() complaint
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]