<lvh> I’d split, if only because it does French spacing correctly.
<raz> oh, split is magic in that way?
<Wild_Cat> “French spacing”?
<Wild_Cat> what is French spacing?
<lvh> If you know your input won’t do that, fine :)
<ProgVal> a word is something which match with that :
#[^a-zA-Z0-9][a-zA-Z0-9]+[^a-zA-Z0-9]#
<lvh> Wild_Cat: It’s what the English call something stupid to mock the
French.
<lvh> Wild_Cat: Two spaces after a period. [09:51]
*** toabctl (~tom@ubuntu/member/toabctl) has joined channel #python
<Wild_Cat> but nobody uses that!
*** nzmm (~matthew_j@121.98.145.205) has joined channel #python
*** regebro (~lregebro@121.16.97-84.rev.gaoland.net) has joined channel
#python
*** nzmm (~matthew_j@121.98.145.205) has left channel #python: #python
<Wild_Cat> (I’d have expected “French spacing” to mean something like putting
a space between words and ? or !)
<lvh> Wild_Cat: loads of software has broken because of things that “nobody
does”, because nobody does that, until somebody does [09:52]
<raz> well, he has a point. whitespace counting only makes sense after
squeezing whitespace, e.g. with a regex
* evanton wonders what’s the problem to google for “python word count”
<ProgVal> <lvh> Wild_Cat: Two spaces after a period. => Why do you call that
French spacing ?
<Wild_Cat> lvh: no, I mean, nobody does that in France. Why the heck is that
called French spacing?
<ProgVal> I’m french, but never write two spaces…
<lvh> ew no, let’s not use things that solve NP-complete problems
*** lamefun (~dingbing@92.246.161.75) has quit: Remote host closed the
connection
<lvh> ProgVal, Wild_Cat: <lvh> Wild_Cat: It’s what the English call something
stupid to mock the French. [09:53]
<Wild_Cat> (I suspect it’s like French fries: it’s actually Belgian spacing
but it’d sound silly :p)
<evanton> space length contest
<evanton> enlarge your space!
<lvh> You have been successfully trolled by long-dead English typographers.