<D <M <Y
Y> M> D>

Beautiful Soup 4.1.2: Another small release. The big new feature is the ability to use the class_ keyword argument to search by CSS class. The big bug fix has to do with XML that uses namespaced attribute names. And the big performance improvement comes from cchardet, a Python binding to Mozilla's charset detector that's much faster (but gives slightly different results) than the pure-Python chardet. If you have cchardet installed, UnicodeDammit will use it in preference to chardet.

[Comments] (7) Weak Tea: In the novel I'm working on now, a character brews tea from tea bags that have been around the block more than once. I described the resulting tea as "the color of lemonade". Then I started wondering if that was an accurate description. What does tea look like when you reuse the leaves over and over?

An experiment was carried out in which I brewed the same tea leaves in a pot six times, steeping each pot for five minutes. The results are in the photo-montage below:

The "C" glass is the control glass, which contains water (i.e. zeroth-generation tea). I stopped the experiment after steep #6, because glasses #5 and #6 came out the same color, and because I was out of transparent glassware.

Conclusion: I don't think "lemonade" is accurate; I'll probably go with "apple juice" or "piss".

PS: I drank only the first pot of tea.


Unless otherwise noted, all content licensed by Leonard Richardson
under a Creative Commons License.