D

David Mertz

gnosis.cx · Personal blog · on HN since 2007

David Mertz, a Python author, publishes his books and articles on text processing, functional programming, and Python, plus an open letter on the PSF.

What HN saysHN commenters praise his free book Text Processing in Python and link his older articles. One thread covers his dispute with the PSF.
18HN people shared it
11linked it in comments
11stories submitted
31story points
7 months agolast shared
2007people per year2026

Most-shared posts

  1. 1
    Text Processing in Python
    8 people · 6 points · first shared 2007 · discussion on HN
  2. 2
  3. 3
  4. 4
  5. 5
  6. 6
  7. 7
    Programming IP Sockets on Linux
    1 people · 2 points · first shared 2011 · discussion on HN
  8. 8
    The Practice of Mathematics
    1 people · 2 points · first shared 2009 · discussion on HN
  9. 9
    Learning to Use Regular Expressions
    1 people · 2 points · first shared 2021 · discussion on HN
  10. 10
    The Puzzling Quirks of Regular Expressions
    1 people · 1 points · first shared 2023 · discussion on HN
  11. 11
    Python as a Social Fact [pdf]
    1 people · 1 points · first shared 2024 · 1 comments on HN
  12. 12
    Board of Fools
    1 people · first shared 2024
  13. 13
    Xml matters 17
    1 people · first shared 2011
  14. 14
    Tech index cp
    1 people · first shared 2008
  15. 15
    Metaclass 1
    1 people · first shared 2026

What HN people wrote when they linked it

zahlman · 2024-10-23
Dr. David Mertz was the other individual banned from the Python Discourse forum, alongside myself, on Jul 19. In this open letter (published Oct 1), Dr. Mertz argues that Ms. Deb Nicholson (PSF executive directory, secretary, and board of directors member [1]; also a member of the PSF Code of Conduct Work Group [2]) acted improperly in removing him from his remaining volunteer role with the PSF (on the Trademark Work Group); and that her decision has foreseeable negative financial consequences for the Foundation. A short follow-up (from Oct 15) [3] criticizes a motion by the board apparently intended to give Ms. Nicholson such power retroactively, claiming that this is legally improper. [1]: https://www.python.org/psf/board/ [2]: https://www.python.org/psf/workgroups/#code-of-conduct-work-group [3]: https://gnosis.cx/publish/Board-of-Fools
simonw · 2012-08-26
I'm a big fan of Text Processing In Python, which has excellent chapters on a bunch of topics including regular expressions, parsers and even compression algorithms. It's available online (from the author's own website) here: http://gnosis.cx/TPiP/
Kaizyn · 2007-12-24
Ads are acceptable though it may slow down site growth. If the ads don't get in the way of your users, they won't mind as much. Also, a donation button might be worthwhile as well; but don't expect it to make much money for you. Consider for example the sob story at the top of the page: http://gnosis.cx/TPiP/. Two donations out of 1,000 book downloads a month. If you can add some extra/useful features to the site, why not setup a premium subscription? Set the price low to start and that will likely get more revenue this way. Good luck!
pjmlp · 2026-04-19
They were unaware of it, or unwilling to talk about it, article from 2002, about changes introduced in 2001 https://gnosis.cx/publish/programming/metaclass_1.html https://www.python.org/download/releases/2.2/descrintro/
donretag · 2013-03-12
Here is another freely available book, Text Processing in Python: http://gnosis.cx/TPiP/ Plain text files and not tied to a library.
justincormack · 2011-02-18
There have been some attempts to make a line oriented XML format so that shell tools work; doing the same thing with JSON is possible too; there are a few ways to do it. Have been meaning to give it a go at some point. In my view it makes more sense than building a new set of tools, especially as the Jshon ones do not really seem to compose properly. References for XML: http://www.lbreyer.com/unix_xml-1.html http://www.ofb.net/~egnor/xml2/ http://gnosis.cx/publish/programming/xml_matters_17.html
inovica · 2007-11-20
Yup. Just did actually about 15 minutes ago :) I just donated for an online Python book. This one: http://gnosis.cx/TPiP/ We found it useful. Also the fact that the guy was moaning that nobody gave made me do it :) Wonder if thats just marketing!
klibertp · 2014-11-04
I think you misunderstood me completely. I was referring to a much more fundamental nature of compilation, not to any particular implementation technique. I agree that "a couple (because I assumed the OP meant this and not a single, giant regexp) of regexes with replace" is not a particularly often used implementation technique for compilers, but it is a workable one. For example, compiling some simple custom markup language to html is a good use case for this. Take a look at "Text processing in Python" (http://gnosis.cx/TPiP/) for a longer discussion. The `eval()` part is also nothing new or strange. There are many systems which let you input expressions, compile it and run. Scala does this, as does Nim, as did Forth for a longest time. In general compilation is not magic, on the contrary, it's conceptually simple and it's a good thing to know the basics. This is the view I wanted to express.
probably · 2010-05-04
Text Processing in Python: http://gnosis.cx/TPiP/

Keyboard shortcuts

/Search
j kNext / previous blog
EnterOpen selected blog
vVisit the blog site
fFollow / unfollow
lSwitch grid / list view
dSwitch dark mode
g hHome
g pTop posts
g tTopics
g fFollowing
g lLiked
g yHistory
g qFAQ
EscBack / close