This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author serhiy.storchaka
Recipients ezio.melotti, mrabarnett, pitrou, serhiy.storchaka, steven.daprano
Date 2014-09-11.17:16:40
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1559252.aknbLcFgp8@raxxla>
In-reply-to <1410278889.96.0.239905162.issue22364@psf.upfronthosting.co.za>
Content
> By the way, which is preferred, "cannot" or "can't"? The regex module always
> uses "can't", but re module uses "cannot" except for "TypeError: can't use
> a bytes pattern on a string-like object", I think.

It's interesting question. Grepping in CPython sources got results:

Cannot  210
cannot  865
Can't   216
can't   796

Lowercase wins uppercase with score 4:1 and short and long forms are 
equivalent.

I left the decision to English speakers.

> Also, you said that one of the re module's messages was better, but didn't
> say which! Did you mean this one?
> > re:    expected bytes, bytearray, or an object with the buffer interface,
> > str found
> > regex: expected bytes instance, str found

Both are not good. re variant is too verbose, but it is more correct.

May be 6, 7, 8, 10, 11, 16, 18 are better in re.
History
Date User Action Args
2014-09-11 17:16:40serhiy.storchakasetrecipients: + serhiy.storchaka, pitrou, ezio.melotti, mrabarnett, steven.daprano
2014-09-11 17:16:40serhiy.storchakalinkissue22364 messages
2014-09-11 17:16:40serhiy.storchakacreate