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

Terry Reedy tjreedy at udel.edu
Thu Jul 18 18:44:39 CEST 2013


On 7/18/2013 9:15 AM, Ezio Melotti wrote:

In 3.x

> "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.

I agree. We just need to use them consistently, and update docs carried 
over without change from 2.x (like re doc), where 'string' meant 
'unicode or str (bytes)' or even 'unicode and bytes-like'.


More information about the Python-Dev mailing list