Ryan Tomayko spins off a nicePython/Java classmethod tutorial from my Python is not Java article. Check it out.
Glyph Lefkowitz (of Twisted fame) hits the nail precisely on the head, with this incisive summary of why C programmers think Python is slow. After Guido asked the python-dev list for ideas on combatting this common perception, I suggested that...
My “Java is not Python, either” article seems to have raised a few hackles. In retrospect, I realize that the fault is my own. Although I myself said in the article that “frameworks like Zope, Twisted, and PEAK all have interfaces, but since they’re...
Once upon a time there was a little boy – let’s call him R.C. R.C. was not the handsomest boy, nor the fastest boy, nor even the smartest boy he knew, but he was young and full of dreams and potential. He was determined to make his mark on the...
People have now discussed my work in a total of eight languages, that I know of, so far; today I spotted blog posts in German, Russian, and some other language that’s presumably spoken in whatever country .cx stands for. Heck, for all I know it...
With the overwhelming response to my earlier Python Is Not Java post, I thought I’d take a little time to be fair and point out that Java Is Not Python, either. While Python is more powerful as a language, Java beats the crap out of it in the area...
I’ve seen the question asked from time to time: how do you unit test a wxPython application?Well, I don’t have a silver bullet, but it seems to me that the new SWIG wrapping of recent wxPython versions allows a new possibility: mocking the entire...
I was recently looking at the source of a wxPython-based GUI application, about 45.5KLOC in size, not counting the libraries used (e.g. Twisted). The code was written by Java developers who are relatively new to Python, and it suffers from some...
The peak.running.options module is finished in CVS, and there’s now a nice Options How-to available, courtesy of myself and the doctest module. As I was saying last Friday, “Doctest is cool!” It reminds me of when I first discovered literate...
I just used the doctest module for the first time today, and I have to say, “Wow! Gosh! Gee!”To date, PEAK incorporates some 878 automated tests, all but one of which are based on the unittest module, so I guess I’ve gotten a fair amount of...
Sometimes, you need to perform an operation over a data structure that includes many different types of data. But, you don’t want to build the operation into the objects themselves, either because you can’t, or because you don’t want to modify every...
In my post yesterday on generic functions, I mentioned that you could use PyProtocols’ new decorators in Python 2.2 and 2.3 as well as 2.4, by using an alternative syntax.What I neglected to mention, however, was that this works only for...