In conjunction with my involvement as co-author of the upcoming Python Cookbook, 3rd Ed. (not yet released), a tutorial at this year’s PyCon in Atlanta, an internal (and ongoing) lunchtime seminar series entitled ‘Snakes On a Plate’, and other recent Python-related projects, I’ve also been refining and revising what I can now call a completely…
Author: bkjones
Lessons Learned Porting Dateutil to Python 3
The dateutil module is a very popular third-party (pure) Python module that makes it easier (and in some cases, possible) to perform more advanced manipulations on dates and date ranges than simply using some combination of Python’s ‘included batteries’ like the datetime, time and calendar modules. Dateutil does fuzzy date matching, Easter calculations in the…
PyCon 2011 Predictions
PyCon 2011 is right around the corner. Are you going? You should. The talks are sick. You can still register — it’s too late to be an early bird, but registration is still open! Well, I am, and I’m here to get the rumor mill started by sharing some predictions for this year’s PyCon. Packaging…
Python 3: Informal String Formatting Performance Comparison
If you haven’t heard the news, Dave Beazley and I have officially begun work on the next edition of the Python Cookbook, which will be completely overhauled using absolutely nothing but Python 3. Yay! Right now, I’m going through some string formatting recipes from the 2nd edition to see if they still work, and if…
The Makings of a Great Python Cookbook Recipe
I’ve seen some comments on Twitter, Buzz, Reddit, and elsewhere, and we’ve gotten some suggestions for recipes already via email (thanks!), and both Dave and I thought it’d be good to present a simple-to-follow ‘meta-recipe’; a recipe for making a great recipe that has a good shot at making it into the cookbook. So let’s…
Good Things Come in Threes: Python Cookbook, Third Edition
It became official earlier today that David Beazley and myself will be co-editing/co-curating the next edition (the Third Edition) of the Python Cookbook. That’s really exciting. Here’s why: It’s Python 3, Cover to Cover Go big or go home. The third edition will be a Python 3 Cookbook. This by itself makes this a rather…
Nose and Coverage.py Reporting in Hudson
I like Hudson. Sure, it’s written in Java, but let’s be honest, it kinda rocks. If you’re a Java developer, it’s admittedly worlds better because it integrates with seemingly every Java development tool out there, but we can do some cool things in Python too, and I thought I’d share a really simple setup to…
Python Packaging, Distribution, and Deployment: Volume 1
This is just Volume 1. I’ll cover as much as I can and just stop when it gets so long most people will stop reading 🙂 I’ve been getting to know the Python packaging and distribution landscape way better than I ever wanted to over the last couple of weeks. After 2 or 3 weeks…
PyCharm is My New Python IDE
Friends, family, and maybe regular readers know that I’m more likely to publicly Regular readers know that I’ve used a large number of IDEs over the past several years. They also know that I have, in every single case, returned to Vim, and I’ve spent a lot of time and effort making Vim be a…
Number Spiral Fun
I love puzzles, and I came across the Oblong Number Spiral challenge on Code Golf over the past week and dove in. Here’s the basic idea, from the challenge at Code Golf: This challenge involves you having to create a number spiral such as : 1 2 3 10 11 4 9 12 5 8…