<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 :
<lvh> Wild_Cat: It’s what the English call something stupid to mock the
<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 (~email@example.com) has joined channel #python
*** regebro (~firstname.lastname@example.org) has joined channel
*** nzmm (~email@example.com) 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 (~firstname.lastname@example.org) has quit: Remote host closed the
<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.