Tag Archives: Python

Python JSON Client & Server Redux

The jsocket package is for use during the development of distributed systems. There are two ways to use the package. The first and simplest is to create a custom single threaded server by overloading the the jsocket.ThreadedServer class. The second, is … Continue reading

Posted in Code | Tagged

Python – Recursive Glob & Line Counter

The other day I needed a recursive glob to find all the *.py files in my home directory. Much to my amazement Python doesn’t have one built into the glob module. So, I built my own and decided to share … Continue reading

Posted in Code | Tagged

Python Generators

Generators are an easy to use tool in Python for making any object method or class an iterator. I’ve found them to be a very useful development tool and wanted to briefly expand on my previous PyQt Charts post. The … Continue reading

Posted in Code | Tagged | 1 Comment

JavaScript & Python Closures

After a hard day of climbing in the canyon my fellow climbing/coder friend Tim started to tell me about a feature of JavaScript he had just started to use called Closures. Even though I have written thousands of lines of … Continue reading

Posted in Code | Tagged ,

Will Python ever be taken seriously?

I’ve been writing Python for almost a year now and have been pleasantly surprised by the language. Even though Python has been around for a few decades now it still hasn’t been widely accepted as a production grade programming language. … Continue reading

Posted in Code, Rants | Tagged

PyQt Charts

The Qt framework doesn’t contain any useful charting widgets. There are a few python charting modules out there, most notably PyQwt. As a PyQt developer I didn’t find this module very useful. What I really wanted was a charting widget … Continue reading

Posted in Code | Tagged | 1 Comment

Getting the System IP Address with Python

The default Python 2.7.1 distribution has very limited functionality for getting the system IP. If your not willing to install an external module then you really only have one choice… open a socket, establish a connection, and get the active … Continue reading

Posted in Code | Tagged

Thrift RPC Framework

At TechStars, Alessio Signorini and I had the opportunity to experiment with Facebook’s Thrift remote procedure call (RPC) framework. I was thoroughly impressed with the framework and feel it takes distributed computing to whole new level. Every developer regularly working … Continue reading

Posted in Code | Tagged ,

Python – Love / Hate

This is what I hate about Python: 1) Really bad at managing threads. 2) All properties require “self” keyword. 3) Inheritance is supported but can be difficult to invoke. 4) Private members are difficult to encapsulate. 5) More difficult to … Continue reading

Posted in Code, Rants | Tagged

Python – No Enumerated Data Type?

In the embedded world where C/C++ are the predominantly used languages, the enum data type is heavily used. It’s quick and easy to use and understand for specifying flags and register values.  Not yet understanding that Python’s real strength is hash-able data types … Continue reading

Posted in Code | Tagged