A few weeks ago, I started working on implementing a new print server at work, with a new quota control system. The old one was a made-at-home collection of scripts and text files, and lacked a few features we’d like to have. After some research, we settled on LPRng with Pykota. LPRng was simple enough to set up (although its interaction with Solaris print services is a little weird at times), but Pykota didn’t like our printers (mostly HP LaserJets of various models and ages) too much.
By the grace of open source code, I could fix the problems, of course. Which I did, and sent the patched code (with fixes and a new feature) back to the developer (my changes are now part of the default distribution). The funny thing is, Pykota is written entirely in Python, and I’d never programmed in Python before. I had heard mostly good things about the language, and was impressed by (1) how easy it is to do “complicated” things in it, such as talking to a database server and to printers using PJL and SNMP, and (2) how easy the code is to understand, such that even a Python beginner can make useful modifications without breaking anything.
So I decided I wanted to learn more about the language, and perhaps to start to do real stuff with it. With this spirit, I went to the library and picked up “Programming Python”, a 1000+ page tome of which I’ve already read… 20. I was expecting something very much like “Programming Perl”, but it’s a different type of book. For one thing, it expects you to know how to program in Python. I guess the book I should be reading is “Learning Python” instead, but the library didn’t have that one. For now, I’ll go on with this and blog about my progress. With some luck, after the holidays break, I’ll be able to write something in Python from scratch!


0 comments ↓
There are no comments yet...Kick things off by filling out the form below.
Leave a Comment