Message226790
> 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. |
|
Date |
User |
Action |
Args |
2014-09-11 17:16:40 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, pitrou, ezio.melotti, mrabarnett, steven.daprano |
2014-09-11 17:16:40 | serhiy.storchaka | link | issue22364 messages |
2014-09-11 17:16:40 | serhiy.storchaka | create | |
|